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