Topic: can I evaluate before_filters before an action is executed?

Is it possible to evaluate a filter (like before_filter)
without actually executing the action? What I would like
to do is to display a hyper link to some action but only
enable the hyper link for users that will be actually able
to execute that action.
something like this:

link_to_if(evaluate_filter('mycontroller','myaction'),"my link text",{:action=>'myaction'})

Last edited by pyrrhos (2006-12-11 13:31:12)

Re: can I evaluate before_filters before an action is executed?

Can you give us a bit more information on how you're implementing authorization/roles in your application?