Ruby on Rails Thursday, January 28, 2016

Hi tamouse,

tamouse pontiki writes:


>> Is there another way doing that? Or is this the recommend way?
>
> If you want it for only one action, Jay call it in the action.

I tried it, but I have a view, so interesting that it doesn't work,
because they have a redirect_to inside. If I put it in the action, i
get the "dont call more than one redirect_to or render" message, which I
could fix by using some if statements, but this looks ugly. I think the
before_action's will stop if the first gets a redirect_to, so the next
will not be run anymore, and this is what I want.

Martin

--
Lösungen statt Diagnosen

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/87powmjcvb.fsf%40kaffanke.at.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment