How to determine controller and action from filter

Hi all. I’ve got an authentication before_filter in application.rb that
has a couple of special cases which depend on the controller and action
to which the request is routed. How can I access those data from inside
the filter method?

  • donald

You mean like…

params[‘action’]

params[‘controller’]

?

/ak

Ball, Donald A Jr (Library) schrieb:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs