On Oct 15, 10:48 am, Hyuuu Setiawan <[EMAIL PROTECTED]>
wrote:
> I want to check which controller or action I am currently in, I can
> access controller.controller_name but is there a more elegant way to do
> it?
> Something like, am_I_in {:controller=>'user',:action=>'index'} or
> am_I_in '/user/index'
>
> Thanks :)
> --
> Posted viahttp://www.ruby-forum.com/.current_page?(:controller => 'user', :action => 'index') --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

