blob: f94af0d52fe57c100a58af9ea767ccb11b0c81b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
Description:
The nifty_layout generator creates a basic layout, stylesheet and
helper which will give some structure to a starting Rails app.
The generator takes one argument which will be the name of the
layout and stylesheet files. If no argument is passed then it defaults
to "application".
The helper module includes some methods which can be called in any
template or partial to set variables to be used in the layout, such as
page title and javascript/stylesheet includes.
Examples:
rails generate nifty:layout
Layout: app/views/layouts/application.html.erb
Stylesheet: public/stylesheets/application.css
Helper: app/helpers/layout_helper.rb
rails generate nifty:layout admin
Layout: app/views/layouts/admin.html.erb
Stylesheet: public/stylesheets/admin.css
Helper: app/helpers/layout_helper.rb
|