Sha256: 7d416cb323d0f289965086f860bb6fa2ec842ae814fc9380557355b1d6a989f0
Contents?: true
Size: 900 Bytes
Versions: 50
Compression:
Stored size: 900 Bytes
Contents
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: script/generate nifty_layout Layout: app/views/layouts/application.html.erb Stylesheet: public/stylesheets/application.css Helper: app/helpers/layout_helper.rb script/generate nifty_layout admin Layout: app/views/layouts/admin.html.erb Stylesheet: public/stylesheets/admin.css Helper: app/helpers/layout_helper.rb
Version data entries
50 entries across 50 versions & 17 rubygems