I think you grasped the first bit of Rails, but if Rails were limited to
action => one view or “every controller has the same layout” it simply
wouldn’t work for complex apps. Consider, in addition to partials,
render :layout => ‘foo’
You can explicitly tell Rails what layout to use or have it render
layout. Additionally, if your whole controller uses a particular layout
it isn’t application.rhtml, just use the layout macro somewhere near the
of your controller:
class FooController < ApplicationController
As you can see, there is a lot of flexibility in how you use layouts.
View this message in context:
Sent from the RubyOnRails Users forum at Nabble.com.