On Mar 15, 5:53 pm, richardsugg <richards...@gmail.com> wrote:
> So in my CompanyController, I have functions index, new, edit, create,
> show, etc... My understanding is that one of these gets called
> depending on the page. If I'm creating a new company, then the new/
> create is called, etc. How do I create a function that is called
> everytime, regardless of the context?
>
Sounds like you are looking for a before_filter
Fred
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment