[Rails] Re: before_filter always running in test, not in development or production mode.
John Postlethwait wrote in post #915199:
> I found a way around this, though I still have no clue why this works:
>
> In my controller, if I add:
>
> def show
> end
>
> The before filter DOES NOT run, as I expect, as soon as I remove the
> def show;end the filter is once again applied to the #show action. Is
> this a Rails3 bug?
>
> -John
>
> On May 27, 3:27 pm, John Postlethwait <john.postlethw...@gmail.com>
This might be of interest:
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home