I have written the member method in the ApplicationController:
class ApplicationController < ActionController::Base
def member
session[:member]
end
end
But it does not seem to be known by the Party Model…
Any help, please?
Greetings,
Josh
OK, I found the problem now. The models can’t know the method member,
because it’s only declarated in the controllers… How can I import this
method into the models?
Thanks for help.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.