views:

12

answers:

1

I think in newer versions of Rails, there are ways to say, "share these methods between controllers and views" using something like

controller.helper
controller.helper_method 

(I am not sure if they are). But what if these methods are missing in older versions of Rails? How can you tell Rails to share methods between controllers and views?

+1  A: 

If that's the case then something is probably wrong with your app. helper_method has been available since Rails 1.0.

http://apidock.com/rails/v1.0.0/ActionController/Helpers/ClassMethods/helper_method

jdl
the code in the original post is actually in the controller: `/Library/Ruby/Gems/1.8/gems/facebooker2-0.0.5/lib/facebooker2/rails/controller.rb line 41`
動靜能量