--
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-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@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.
On Jan 27, 2016 1:13 PM, "Martin" <myl...@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
>