Hi, I have two controllers called user and languages. languages is generated by scaffold. where user is created using rails generators. But user controller is not using languages layout. how do I make user_controller to use languages.rhtml as defualt layout. Thanks in advance, sharma
on 2007-02-28 19:41
on 2007-02-28 20:50
You can specify a different layout to use in the controller. So inside the user_controller add this line layout 'languages' and it should look in the layout folder for a languages.rhtml file.
on 2007-02-28 23:06
put this at the top of your user_controller: layout "languages"
on 2007-03-01 05:45
Thank youguys. I need to observe keenly. jstepper wrote: > put this at the top of your user_controller: > > layout "languages"