Hi all, I wonder if it's possible to retrieve the current controller name and possibly the action when you're in a view. i.e. I call the same template/partial view from different controllers and I'd like to know when I'm in the view code which controller is calling it... Any ideas? Sorry if it's obvious but I couldn't find it in the doc. Gael
on 2006-05-15 15:31
on 2006-05-15 15:40
<%= controller.controller_name -%> <%= controller.action_name -%> On 5/15/06, Gael Pourriel <email@example.com> wrote: > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > --
on 2006-05-15 15:47
Thanks, I knew it would be that simple....