<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
This is probably something I screwed up. However, I reset the lesson three times now and still getting same error. Hope someone can help!
t.string :role to the db/migrate/20150509215157_create_user.rb file, but when I
tried to perform the migration, I ran into this error:
$ rake db:migrate /home/ccuser/.gem/ruby/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:55:in `pwd': No such file or directory - getcwd (Errno::ENOENT) from /home/ccuser/.gem/ruby/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:55:in ` initialize' from /home/ccuser/.gem/ruby/2.0.0/gems/rake-10.4.2/lib/rake/rake_module.rb:8:in `n ew' from /home/ccuser/.gem/ruby/2.0.0/gems/rake-10.4.2/lib/rake/rake_module.rb:8:in `a pplication' from /home/ccuser/.gem/ruby/2.0.0/gems/rake-10.4.2/bin/rake:33:in `<top (required) >' from /home/ccuser/.gem/ruby/2.0.0/bin/rake:23:in `load' from /home/ccuser/.gem/ruby/2.0.0/bin/rake:23:in `<main>'
The lesson itself is also giving me an error. I went into rails console and was able to create a user and look at the user and the user had all attributes I was expecting including
role which was set to
class User < ActiveRecord::Base has_secure_password def editor? self.role == 'editor' end end # Error Message Oops! The test returned an error. Maybe you have a syntax error, or a typo. Hide error. /var/lib/gems/2.0.0/gems/activerecord-4.1.1/lib/active_record/connection_adapters/sqlite3_adapter.rb:512:in `table_structure': Could not find table 'users' (ActiveRecord::StatementInvalid)
<Below this line, add a link to the EXACT exercise that you are stuck at.>
Please Check Out This Exercise and let help me figure out what I did wrong. I appreciate any help I can get. Thank you in advance.
<In what way does your code behave incorrectly? Include ALL error messages.>