Hi
I have one main layout and I would like that the left menu change
depending on the controller. How can I do it ?
Thanks
Hi
I have one main layout and I would like that the left menu change
depending on the controller. How can I do it ?
Thanks
2008/9/1 David N. [email protected]
Hi
I have one main layout and I would like that the left menu change
depending on the controller. How can I do it ?
Hey David, please notice that you were writing to a mailing list
dedicated
only to internationalization features. You should send these general
rails
questions to the general rails mailing list.
Anyway here’s how to do it: you can check what controller and/or action
you’re in on your layout and then show its corresponding menu. You just
need
to check:
controller.controller_name
controller.action_name
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs