How to get current user id in my controller using development?
In my controller, I have something like this:
def index me = current_user c = User.find(me) @sheets = c.time_sheets end
I get an error: "Could not find user without identifier."
If I put a static number in User.find (), this works, but of course, this is not what I want. Any help would be greatly appreciated.
thanks!
ruby-on-rails ruby-on-rails-4 devise
mild0d
source share