Forum: Ruby on Rails Sending arguments to filter methods

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Pat M. (Guest)
on 2006-04-22 17:06
(Received via mailing list)
I want to set up a before_filter, and I want to be able to pass it
some parameters.  My method looks like

def my_filter(a)
  ...
end

And I want to do

before_filter :myfilter 'a'

I've tried the above and
before_filter :myfilter, 'a'

but neither one is acceptable.  How can I specify an argument to pass
in to the filter method?

Pat
This topic is locked and can not be replied to.