On May 9, 8:03 pm, John Merlino li...@ruby-forum.com wrote:
Hey all,
Let's say you have a controller class and you include a module:
module AuthenticationSystem
def self.included(base)
base.send :helper_method, :current_user
end
end
The point of this is to call helper_method
The point of this is to call helper_method :current_user. You can look
up what helper_method does in the rails docs.
Fred
ok so basically this allows you to use current_user in your views.
thanks for response
--
Posted via http://www.ruby-forum.com/.
--
You received this message because
2 matches
Mail list logo