title: Rails before_filter and action identification
body: <p>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 plugin do..)</p>
  
  <p>Ex: if a user types this url <code>http://localhost:3000/users</code>, default it goes to users/index action. And in my users controller i'm having a before filter method say 'check_permission' and i want that method to get 'index' as the action.</p>