Error when tyring to create a rails app - ruby-on-rails

When reaching step 4 of this guide, which is to create a new rails app:
http://installfest.railsbridge.org/installfest/create_a_rails_app
the following output is recieved, along with my rails app not being created:
create
/home/salpal/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/fileutils.rb:252:in `mkdir': Permission denied # dir_s_mkdir - /home/salpal/railsbridge/test_app (Errno::EACCES)
from /home/salpal/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/fileutils.rb:252:in `fu_mkdir'
from /home/salpal/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/fileutils.rb:226:in `block (2 levels) in mkdir_p'
from /home/salpal/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/fileutils.rb:224:in `reverse_each'
from /home/salpal/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/fileutils.rb:224:in `block in mkdir_p'
from /home/salpal/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/fileutils.rb:210:in `each'
from /home/salpal/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/fileutils.rb:210:in `mkdir_p'
from /home/salpal/.rvm/gems/ruby-2.2.4/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb:50:in `block in invoke!'
from /home/salpal/.rvm/gems/ruby-2.2.4/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb:116:in `call'
from /home/salpal/.rvm/gems/ruby-2.2.4/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb:116:in `invoke_with_conflict_check'
from /home/salpal/.rvm/gems/ruby-2.2.4/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb:49:in `invoke!'
from /home/salpal/.rvm/gems/ruby-2.2.4/gems/thor-0.19.1/lib/thor/actions.rb:94:in `action'
from /home/salpal/.rvm/gems/ruby-2.2.4/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb:14:in `empty_directory'
from /home/salpal/.rvm/gems/ruby-2.2.4/gems/railties-4.2.5/lib/rails/generators/app_base.rb:138:in `create_root'
from (eval):1:in `create_root'
from /home/salpal/.rvm/gems/ruby-2.2.4/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /home/salpal/.rvm/gems/ruby-2.2.4/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /home/salpal/.rvm/gems/ruby-2.2.4/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
from /home/salpal/.rvm/gems/ruby-2.2.4/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
from /home/salpal/.rvm/gems/ruby-2.2.4/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
from /home/salpal/.rvm/gems/ruby-2.2.4/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
from /home/salpal/.rvm/gems/ruby-2.2.4/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
from /home/salpal/.rvm/gems/ruby-2.2.4/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /home/salpal/.rvm/gems/ruby-2.2.4/gems/railties-4.2.5/lib/rails/commands/application.rb:17:in `<top (required)>'
from /home/salpal/.rvm/rubies/ruby-2.2.4/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /home/salpal/.rvm/rubies/ruby-2.2.4/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /home/salpal/.rvm/gems/ruby-2.2.4/gems/railties-4.2.5/lib/rails/cli.rb:14:in `<top (required)>'
from /home/salpal/.rvm/rubies/ruby-2.2.4/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /home/salpal/.rvm/rubies/ruby-2.2.4/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /home/salpal/.rvm/gems/ruby-2.2.4/gems/railties-4.2.5/bin/rails:9:in `<top (required)>'
from /home/salpal/.rvm/gems/ruby-2.2.4/bin/rails:23:in `load'
from /home/salpal/.rvm/gems/ruby-2.2.4/bin/rails:23:in `<main>'
from /home/salpal/.rvm/gems/ruby-2.2.4/bin/ruby_executable_hooks:15:in `eval'
from /home/salpal/.rvm/gems/ruby-2.2.4/bin/ruby_executable_hooks:15:in `<main>'
Does anyone know a reason for this? Any help would be much appreciated!

Related

rails 5 - could could not generate rspec:install

I am trying to build restful api using rails
I am following the blog link tutorial to work out
https://scotch.io/tutorials/build-a-restful-json-api-with-rails-5-part-one
but when i run this following command
rails generate rspec:install
It generates the following error
identical .rspec
exist spec
create spec/C:/Users/Shad Munir/AppData/Local/Temp/d20170503-6768-l4n0e9/spec/spec_helper.rb
C:/Ruby23-x64/lib/ruby/2.3.0/fileutils.rb:253:in `mkdir': Invalid argument # dir_s_mkdir - E:/todos-api/spec/C: (Errno::EINVAL)
from C:/Ruby23-x64/lib/ruby/2.3.0/fileutils.rb:253:in `fu_mkdir'
from C:/Ruby23-x64/lib/ruby/2.3.0/fileutils.rb:227:in `block (2 levels) in mkdir_p'
from C:/Ruby23-x64/lib/ruby/2.3.0/fileutils.rb:225:in `reverse_each'
from C:/Ruby23-x64/lib/ruby/2.3.0/fileutils.rb:225:in `block in mkdir_p'
from C:/Ruby23-x64/lib/ruby/2.3.0/fileutils.rb:211:in `each'
from C:/Ruby23-x64/lib/ruby/2.3.0/fileutils.rb:211:in `mkdir_p'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/actions/create_file.rb:61:in `block in invoke!'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/actions/empty_directory.rb:116:in `invoke_with_conflict_check'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/actions/create_file.rb:60:in `invoke!'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/actions.rb:95:in `action'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/actions/create_file.rb:25:in `create_file'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/actions/file_manipulation.rb:27:in `copy_file'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/actions/directory.rb:94:in `block in execute!'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/actions/directory.rb:80:in `each'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/actions/directory.rb:80:in `execute!'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/actions/directory.rb:66:in `invoke!'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/actions.rb:95:in `action'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/actions/directory.rb:52:in `directory'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rspec-rails-3.5.2/lib/generators/rspec/install/install_generator.rb:23:in `block in copy_spec_files'
from C:/Ruby23-x64/lib/ruby/2.3.0/tmpdir.rb:89:in `mktmpdir'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rspec-rails-3.5.2/lib/generators/rspec/install/install_generator.rb:20:in `copy_spec_files'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/invocation.rb:133:in `block in invoke_all'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/invocation.rb:133:in `each'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/invocation.rb:133:in `map'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/invocation.rb:133:in `invoke_all'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/group.rb:232:in `dispatch'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/base.rb:444:in `start'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/generators.rb:180:in `invoke'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands/generate.rb:13:in `<top (required)>'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:293:in `require'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:293:in `block in require'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:259:in `load_dependency'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:293:in `require'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:138:in `require_command!'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:145:in `generate_or_destroy'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:60:in `generate'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands.rb:18:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
I tried some related solution from stack overflow but none of them is working .
I had this same problem a couple of days ago. What I had to do was delete all versions of RSpec from my machine and then run bundle install. This installed the latest version of RSpec and everything was good afterwards.

permission Denied whil installing activeadmin

I am trying to use activeadmin in my Rails app.But when i try to install activeadmin it throws 'permission denied' error.
I have added in my Gemfile.
gem 'activeadmin', github: 'activeadmin'
When I run 'rails generate active_admin:install'
I get the following error
**/home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions/inject_into_file.rb:101:in `initialize': Permission denied # rb_sysopen - /home/cbls-2/academics/office_management/config/routes.rb (Errno::EACCES)**
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions/inject_into_file.rb:101:in `open'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions/inject_into_file.rb:101:in `replace!'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions/inject_into_file.rb:59:in `invoke!'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions.rb:94:in `action'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions/inject_into_file.rb:30:in `insert_into_file'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/generators/actions.rb:224:in `block in route'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions.rb:194:in `block in in_root'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions.rb:184:in `block in inside'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/2.3.0/fileutils.rb:128:in `chdir'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/2.3.0/fileutils.rb:128:in `cd'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions.rb:184:in `inside'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions.rb:194:in `in_root'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/generators/actions.rb:223:in `route'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/devise-4.1.0/lib/generators/devise/devise_generator.rb:22:in `add_devise_routes'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:115:in `invoke'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/bundler/gems/activeadmin-70cfbf3d7d33/lib/generators/active_admin/devise/devise_generator.rb:39:in `create_admin_user'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:115:in `invoke'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/group.rb:277:in `block in _invoke_for_class_method'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/shell.rb:68:in `with_padding'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/group.rb:266:in `_invoke_for_class_method'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/group.rb:133:in `_invoke_from_option_users'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/generators.rb:157:in `invoke'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/commands/generate.rb:13:in `<top (required)>'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:123:in `require_command!'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:130:in `generate_or_destroy'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:50:in `generate'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /home/cbls-2/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:9:in `require'
from bin/rails:9:in `<main>'
Try running
sudo chown -R youruser ~/.rbenv

ruby gem devise could not generate initializer

I followed the steps on https://github.com/plataformatec/devise to install devise.
after bundle install
I tried to add initializer to my app config using:
rails generate devise:install
However, I keep getting this error:
undefined method `devise' for User (call 'User.connection' to establish a connection):Class (NoMethodError)
Stack trace:
/Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/activerecord-4.0.10/lib/active_record/dynamic_matchers.rb:22:in `method_missing': undefined method `devise' for User (call 'User.connection' to establish a connection):Class (NoMethodError)
from /Users/MyUsername/Documents/AppDev/Pinteresting/app/models/user.rb:4:in `<class:User>'
from /Users/MyUsername/Documents/AppDev/Pinteresting/app/models/user.rb:1:in `<top (required)>'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.0.10/lib/active_support/dependencies.rb:424:in `load'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.0.10/lib/active_support/dependencies.rb:424:in `block in load_file'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.0.10/lib/active_support/dependencies.rb:616:in `new_constants_in'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.0.10/lib/active_support/dependencies.rb:423:in `load_file'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.0.10/lib/active_support/dependencies.rb:324:in `require_or_load'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.0.10/lib/active_support/dependencies.rb:463:in `load_missing_constant'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.0.10/lib/active_support/dependencies.rb:184:in `const_missing'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.0.10/lib/active_support/inflector/methods.rb:226:in `const_get'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.0.10/lib/active_support/inflector/methods.rb:226:in `block in constantize'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.0.10/lib/active_support/inflector/methods.rb:224:in `each'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.0.10/lib/active_support/inflector/methods.rb:224:in `inject'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.0.10/lib/active_support/inflector/methods.rb:224:in `constantize'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.0.10/lib/active_support/dependencies.rb:535:in `get'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.0.10/lib/active_support/dependencies.rb:566:in `constantize'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/devise-3.4.0/lib/devise.rb:302:in `get'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/devise-3.4.0/lib/devise/mapping.rb:80:in `to'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/devise-3.4.0/lib/devise/mapping.rb:75:in `modules'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/devise-3.4.0/lib/devise/mapping.rb:92:in `routes'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/devise-3.4.0/lib/devise/mapping.rb:159:in `default_used_route'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/devise-3.4.0/lib/devise/mapping.rb:69:in `initialize'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/devise-3.4.0/lib/devise.rb:336:in `new'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/devise-3.4.0/lib/devise.rb:336:in `add_mapping'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/devise-3.4.0/lib/devise/rails/routes.rb:224:in `block in devise_for'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/devise-3.4.0/lib/devise/rails/routes.rb:223:in `each'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/devise-3.4.0/lib/devise/rails/routes.rb:223:in `devise_for'
from /Users/MyUsername/Documents/AppDev/Pinteresting/config/routes.rb:2:in `block in <top (required)>'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/actionpack-4.0.10/lib/action_dispatch/routing/route_set.rb:337:in `instance_exec'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/actionpack-4.0.10/lib/action_dispatch/routing/route_set.rb:337:in `eval_block'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/actionpack-4.0.10/lib/action_dispatch/routing/route_set.rb:315:in `draw'
from /Users/MyUsername/Documents/AppDev/Pinteresting/config/routes.rb:1:in `<top (required)>'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.0.10/lib/active_support/dependencies.rb:223:in `load'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.0.10/lib/active_support/dependencies.rb:223:in `block in load'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.0.10/lib/active_support/dependencies.rb:214:in `load_dependency'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.0.10/lib/active_support/dependencies.rb:223:in `load'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/railties-4.0.10/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/railties-4.0.10/lib/rails/application/routes_reloader.rb:40:in `each'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/railties-4.0.10/lib/rails/application/routes_reloader.rb:40:in `load_paths'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/railties-4.0.10/lib/rails/application/routes_reloader.rb:16:in `reload!'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/railties-4.0.10/lib/rails/application/routes_reloader.rb:26:in `block in updater'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.0.10/lib/active_support/file_update_checker.rb:75:in `call'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.0.10/lib/active_support/file_update_checker.rb:75:in `execute'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/railties-4.0.10/lib/rails/application/routes_reloader.rb:27:in `updater'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/railties-4.0.10/lib/rails/application/routes_reloader.rb:6:in `execute_if_updated'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/railties-4.0.10/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/railties-4.0.10/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/railties-4.0.10/lib/rails/initializable.rb:30:in `run'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/railties-4.0.10/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/MyUsername/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from /Users/MyUsername/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from /Users/MyUsername/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from /Users/MyUsername/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from /Users/MyUsername/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/2.0.0/tsort.rb:180:in `each'
from /Users/MyUsername/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from /Users/MyUsername/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/railties-4.0.10/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/railties-4.0.10/lib/rails/application.rb:215:in `initialize!'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/railties-4.0.10/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/MyUsername/Documents/AppDev/Pinteresting/config/environment.rb:5:in `<top (required)>'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.0.10/lib/active_support/dependencies.rb:229:in `require'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.0.10/lib/active_support/dependencies.rb:229:in `block in require'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.0.10/lib/active_support/dependencies.rb:214:in `load_dependency'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/activesupport-4.0.10/lib/active_support/dependencies.rb:229:in `require'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/railties-4.0.10/lib/rails/application.rb:189:in `require_environment!'
from /Users/MyUsername/.rvm/gems/ruby-2.0.0-p576/gems/railties-4.0.10/lib/rails/commands.rb:44:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
Okay, I figured out the problem. I guess because I previous installed devise and tried to reinstall a new version. However, devise automatically created some models for the app. I deleted those created folders/files and rerun rails generate devise:install and it worked.

Rails: error installing backbone-on-rails gem

I included 'backbone-on-rails' in my Gemfile, did bundle install, and then did
rails generate backbone:install --javascript
And I got the error below. I'm using rails 3.2.8 and ruby 193. Can anyone explain what the problem might be?
If I can't get the gem to work, does anyone know where I should include _underscore and backbone in a Rails application?
/Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:181:in `default_controller_and_action': missing :controller (ArgumentError)
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:78:in `normalize_options!'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:61:in `initialize'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:1304:in `new'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:1304:in `add_route'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:1284:in `decomposed_match'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:1270:in `block in match'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:1270:in `each'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:1270:in `match'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:507:in `map_method'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:469:in `get'
from /Users/michael/Sites/backy/config/routes.rb:2:in `block in <top (required)>'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:282:in `instance_exec'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:282:in `eval_block'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:260:in `draw'
from /Users/michael/Sites/backy/config/routes.rb:1:in `<top (required)>'
from /Users/michaeljohnmitchell/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `load'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `block in load'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/michaeljohnmitchell/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `load'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:40:in `each'
from /Users/michaeljohnmitchell/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:40:in `load_paths'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:16:in `reload!'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:26:in `block in updater'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/activesupport-3.2.8/lib/active_support/file_update_checker.rb:78:in `call'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/activesupport-3.2.8/lib/active_support/file_update_checker.rb:78:in `execute'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:27:in `updater'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:7:in `execute_if_updated'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/railties-3.2.8/lib/rails/application/finisher.rb:66:in `block in <module:Finisher>'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `run'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/railties-3.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `each'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/railties-3.2.8/lib/rails/application.rb:136:in `initialize!'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/michael/Sites/backy/config/environment.rb:5:in `<top (required)>'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/railties-3.2.8/lib/rails/application.rb:103:in `require'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/railties-3.2.8/lib/rails/application.rb:103:in `require_environment!'
from /Users/michael/.rvm/gems/ruby-1.9.3-rc1#ruby193/gems/railties-3.2.8/lib/rails/commands.rb:25:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
It had nothing to do with backbone-on-rails. I had an error in the route that was defined in routes.rb

Broken rails environment: can't run rails generate scaffold

I have a mystery: My rvm/ruby-1.9.2 environment, running rails 3.1.3, can no longer run this command
rails generate scaffold Game name:string difficulty:string
I get the following dump after a 'method missing' failure
kenb#stargate:~/development/sudoku$ rails g scaffold Game name:string difficulty:string
invoke active_record
/home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/base.rb:1088:in `method_missing': undefined method `mass_assignment_sanitizer=' for ActiveRecord::Base:Class (NoMethodError)
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/railtie.rb:59:in `block (3 levels) in <class:Railtie>'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/railtie.rb:58:in `each'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/railtie.rb:58:in `block (2 levels) in <class:Railtie>'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/lib/active_support/lazy_load_hooks.rb:42:in `each'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/active_record/base.rb:2190:in `<top (required)>'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/rails/generators/named_base.rb:165:in `pluralize_table_names?'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/rails/generators/named_base.rb:112:in `table_name'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.3/lib/rails/generators/active_record/model/model_generator.rb:17:in `create_migration_file'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `block in invoke_all'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `each'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `map'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `invoke_all'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/group.rb:226:in `dispatch'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/invocation.rb:109:in `invoke'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/group.rb:269:in `block in _invoke_for_class_method'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/shell.rb:74:in `with_padding'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/group.rb:258:in `_invoke_for_class_method'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/group.rb:150:in `_invoke_from_option_orm'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `block in invoke_all'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `each'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `map'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `invoke_all'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/group.rb:226:in `dispatch'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/rails/generators.rb:168:in `invoke'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/rails/commands/generate.rb:12:in `<top (required)>'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `block in require'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `block in load_dependency'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:640:in `new_constants_in'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `load_dependency'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'
from /home/kenb/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.3/lib/rails/commands.rb:28:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
I have gone so far as to remove rvm and all dependent gems, re-install rvm, ruby-1.9.2, and then run 'bundle install' in my app folder. All goes well. Then, I get a failure on the generate command.
According to http://apidock.com/rails/ActiveModel/MassAssignmentSecurity/ClassMethods/mass_assignment_sanitizer%3D mass_assignment_sanitizer was introduced in rails 3.2, while you are using 3.1.3. Haven't you generated you project with rails 3.2?

Resources