On Tue, Jun 30, 2009 at 8:15 PM, Abhishek shukla<[email protected]> wrote: > hey guys really got stuck and i guess this is the place where i can get a > solution. I want to retrieve the controller name in a layout so i am using > the following command controller.controller_ name But what if i have a > namespace and in the two different folder i have the same controller name > then wat to do ? > > Regards > Abhis >
Quick answer: the controller and action names are kept in the params hash Andrew Timberlake http://ramblingsonrails.com http://MyMvelope.com - The SIMPLE way to manage your savings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

