2008/9/1 David Nguyen <[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 -- Jaime Iniesta http://jaimeiniesta.com http://www.workingwithrails.com/person/6722-jaime-iniesta
_______________________________________________ Railsi18n-discussion mailing list Railsi18n-discussion@rubyforge.org http://rubyforge.org/mailman/listinfo/railsi18n-discussion