Ruby/Rails is so confusing. I'm going through the Michael Hartl tutorial, and I get an error with the following terminal command:
$ rails generate scaffold Micropost content:string user_id:integer
gives me:
/Users/johncurry/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'railties' (>= 0) among 8 total gem(s) (Gem::LoadError)
from /Users/johncurry/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:309:in `to_spec'
from /Users/johncurry/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in `gem'
from /Users/johncurry/.rvm/rubies/ruby-2.0.0-p247/bin/rails:22:in `<main>'
I really have no clue what it's asking, or why its not working. I was able to generate a scaffold earlier, and I'm in the demo_app folder in the terminal, so I'm not sure whats going on, or even what information to put on here. http://ruby.railstutorial.org/chapters/a-demo-app#fig-demo_micropost_model is the link, and i'm stuck at section 2.3.1
$bundle show
/Users/johncurry/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'bundler' (>= 0) among 8 total gem(s) (Gem::LoadError)
from /Users/johncurry/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:309:in `to_spec'
from /Users/johncurry/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in `gem'
from /Users/johncurry/.rvm/rubies/ruby-2.0.0-p247/bin/bundle:22:in `<main>'