Topic: Utility / helper method for controller, where to post?

Hey.
ive written a little bit of code that i use in one controller.. i want to resuse this in another controller and potentially more down the line. where do i put this code so i can call it from any controller?
thanks

Re: Utility / helper method for controller, where to post?

/app/controllers/application.rb

this is the base class for all of your controllers
be sure to make it a protected method, otherwise it will be exposed as an action and callable from the browser