Mathieu Chappuis
2006-Apr-10 14:13 UTC
[Rails] [Q] How run Custom code on each request/action
Dears, For obscure reasons I''ll like to reset a session key when request/action is outside a specific controller. Is there a common place in the app where I can put such code, instead of adding statements in each controllers ? DRY Thanks, Mathieu
application.rb, before_filter On 4/10/06, Mathieu Chappuis <mathieu.chappuis.lists@gmail.com> wrote:> > Dears, > > For obscure reasons I''ll like to reset a session key when > request/action is outside a specific controller. > > Is there a common place in the app where I can put such code, instead > of adding statements in each controllers ? > > DRY > > Thanks, > Mathieu > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060410/683de941/attachment.html
Possibly Parallel Threads
- How switching global layout (application.rthml <or> custom.rhtml)
- Rendering dynamic Gruff image (send_data)
- A number (id?) is added after css/js tags like style.css?1154009736
- [AR] #{id} namespace visibility used in finder_sql
- Paginate do a Count(*) request before, how access that count value.