Can I put an after style filter on a method that is part of a model that
is
not a create, update, destroy?
β
John K.
[email protected]
Blog: http://www.kopanas.com
Conference: http://www.cusec.net
Twits: http://www.twitter.com/kopanas
Can I put an after style filter on a method that is part of a model that
is
not a create, update, destroy?
β
John K.
[email protected]
Blog: http://www.kopanas.com
Conference: http://www.cusec.net
Twits: http://www.twitter.com/kopanas
Yes, you can apply a filter to any (public) action. Donβt forget that
if you want to restrict it to your new action then you can use
the :only param as wellβ¦
after_filter :clean_up_on_aisle_five, :only=>:aisle_five
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs