On 11/25/05, BigSmoke <bigsmoke@gmail.com> wrote:> I'm trying to use @params in a before filter, but it appears to be
> nil. From the description in the API docs I understand that I should
> have access to the complete request from all the filters in my
> controller. What could I be doing wrong?
I found out what I was doing wrong. I was using the inline method as in
before_filter { false if @params['uncool'] }
instead of
before_filter { |controller| false if controller.params['uncool'] }
Quite stupid. I know.
- Rowan
--
Morality is usually taught by the immoral.
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails