On Jan 27, 2016 1:13 PM, "Martin" <mylists@kaffanke.at> wrote:
>
> Hi there,
>
> If I want a before_action for only one action, like
>
> before_action check_something_with_redirect_if_any, only: :index
>
> 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.
>
> If not what else could work here?
>
> Thanks,
> Martin
>
> --
> 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/2d11149f-2cba-4809-b769-ee9604636c11%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
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/CAHUC_t9Rj5rf0j5FAoUGJFHpChzXkfX6iMfFKDVK6V5YYDRZkg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment