Sha256: 1a7037d64186af03dab202473e010ad67ca63d8c4cf0b3cd18a24bb73b513570
Contents?: true
Size: 592 Bytes
Versions: 2
Compression:
Stored size: 592 Bytes
Contents
LayoutOptions.setup do |config| # layout_options assumes the default layout to use is the 'applicaiton' layout. # If this isn't the case just change the value here. # # "Why would I ever want a different default layout?" # Creating a stock rails app gives you an 'application.html.erb' layout file. # If you make a Rails engine and try to use an 'application' layout it will # pull the auto-generated one from the rails root. Setting your default layout # to something different, like the name of your engine, will fix the conflict. config.default_layout = :application end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
layout_options-0.2.2 | lib/generators/layout_options/templates/layout_options.rb |
layout_options-0.2.1 | lib/generators/layout_options/templates/layout_options.rb |