ruby on rails - Error in creating resources with scaffold -
i try execute following command:
rails generate scaffold micropost content:string user id:integer
after executing following command following error messages coming:
/usr/local/lib/ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs': not find 'railties' (>= 0) among 13 total gem(s) (gem::loaderror) /usr/local/lib/ruby/2.0.0/rubygems/dependency.rb:307:in `to_spec' /usr/local/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in `gem' /usr/local/bin/rails:22:in `<main>'
but before have executed such statement create resource named user. ran successfully. new rails. have no idea error. can me fix that? thank you.
you need run bundle install
command.
this command should run after every changes make in file named gemfile
@ root of rails project. gemfile
place you'll want declare applications dependencies (gems).
please have here more details.
Comments
Post a Comment