Friday, August 17, 2012

Configure Rails pages to use different layouts.


  • Specify in controller.  By default, the controller will use the same layout (under the view/layouts/ directory) having same name with the controller.  If not found, /layouts/application.html.erb will be used.
  • In controller set the :layout value.  details refer to : http://guides.rubyonrails.org/layouts_and_rendering.html

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.