-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined local variable or method `current_user' for #19
Comments
same problem. |
have you guys run " rake db:migrate " after generating? |
Problem solved after several steps. But I forget the details. Kind of things like what you say. @Unayung |
it's problem of database, come to config/database.yml back to default set: development: test: production: and go to gemfile add : gem "sqlite3" $ rake db:migrate |
I found the error is because devise, you can run the following command: |
I followed instructions from rails-101, generated the group model in exercise 1 and encountered the same problem, I tried " rake db:migrate " after generating, and the same problem still exists. |
you need install devise, try $ rails g devise:install $ rails g devise user |
installed latest gem (4.2).
under ruby 2.0.0, rails 4
error occur when first "rails s"
The text was updated successfully, but these errors were encountered: