NoamB/sorcery — Issue #101: Generator can't find app/models/User.rb
Author: jarijokinen
Created: 2011-10-22 15:02:51+00:00
State: open

Command "rails generate sorcery:install" fails because the generator tries to insert code into file "app/models/#{model_class_name}.rb" which translates to "app/models/User.rb".

Error message:

/home/jari/.rvm/gems/ree-1.8.7-2011.03/gems/thor-0.14.6/lib/thor/core_ext/file_binary_read.rb:5:in `initialize': No such file or directory - /home/jari/work/sorcerytest/app/models/User.rb (Errno::ENOENT)
...
from /home/jari/.rvm/gems/ree-1.8.7-2011.03/gems/sorcery-0.7.1/lib/generators/sorcery/install_generator.rb:36:in `configure_initializer_file'