I want to write a before_filter in my controller to identify the action which will execute next. This is for authorization purposes (this is somewhat like role_requirement plugi
The action_name method on the controller should give you what you're looking for. It's not documented, though, so there is no guarantee it won't disappear someday.
before_filter { |controller| logger.debug "Running before the #{controller.action_name} action" }