I'm trying to get through Michael Hartl Rails Tutorial and am stuck with an error after I try the signup now link -reference- Rails Tutorial Signup:
ActiveRecord::StatementInvalid in UsersController#new
def table_structure(table_name)
structure = exec_query("PRAGMA table_info(#{quote_table_name(table_name)})", 'SCHEMA').to_hash
**raise(ActiveRecord::StatementInvalid, "Could not find table '#{table_name}'") if structure.empty?**
structure
end
At the end of section 7.2 the instruction was to remove the user created in section 6.3.4
$ bundle exec rake db:migrate:reset
Would this have something to do with not being able to find table? Any help would be appreciated. Thanks
Aucun commentaire:
Enregistrer un commentaire