Ruby on Rails Wednesday, January 27, 2016

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

No comments:

Post a Comment