I have the same issue. I can’t generate user model.
$ rails g model User
pwd': No such file or directory - getcwd (Errno::ENOENT) from /home/ccuser/.gem/ruby/2.0.0/gems/railties-4.1.1/lib/rails/app_rails_loader.rb: 30:inexec_app_rails’
<top (required)>' from /usr/lib/ruby/2.0.0/rubygems/core _ext/kernel_require.rb:73:inrequire’
require' from /home/ccuser/.gem/ruby/2.0.0/gems /railties-4.1.1/bin/rails:9:in<top (required)>’
load' from /home/ccuser/.gem/ruby2.0.0/bin/rails:23:in’
Could you post a link to the exercise you’re on?
Also, does restarting the exercise change anything?
I’m trying to restart the exercise
it shows me “Fixing your files” message, but nothing happens beside that.
it shows me “Fixing your files” message, but nothing happens beside that
It doesn’t even undo any changes you’ve made in existing files? That’s not good…
Does it work if you try the regular version of the command, like this?
$ rails generate model User
Hi, Zystvan! Today fortune smiles to me and exercise reset succeeded)
$rails generate model User -f
worked. The file has been created.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.