Code that controller and view can access

Is there a way I can make a function be accessible by both the
controller and the view?

class MyController < ActionController::Base

   def some_method
   end

   helper_method :some_method
end

Fred