Monday, November 8, 2010

[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:

https://rails.lighthouseapp.com/projects/8994/tickets/5673-rails3-conditional-before_filter-not-always-executed-for-implicit-resource-actions#ticket-5673-33

--
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


Real Estate