Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Interesting issue

I'm upto the point where I'm creating the friendships models for user join tables.

Now comes the interesting part, so I run rails generate model Userfriendships

Then I get an error so I quickly check my version, rails -v and now I'm getting the following error whenever I type a command using rails -v for example. I currently have half a screen as the other half has been smashed across the floor.

Your help is greatly appreciated as I may start turning green at any second.

C:\Sites\treebook>rails -v                                                      
Looks like your app's ./bin/rails is a stub that was generated by Bundler.                                                                                      
In Rails 4, your app's bin/ directory contains executables that are versioned like any other source code, rather than stubs that are generated on demand.  Here's how to upgrade:    

  bundle config --delete bin    # Turn off Bundler's stub generator              
 rake rails:update:bin         # Use the new Rails 4 executables                
 git add bin          # Add bin/ to source control                                                                                                    

You may need to remove bin/ from your .gitignore as well.                                                                                                       

When you install a gem whose executable you want to use in your app,  generate it and add it to source control:  bundle binstubs some-gem-name        git add bin/new
executable                                                                                                                                   

C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:33:in 
`block in setup':
 You have already activated i18n 0.6.5, but your Gemfile requires i18n 0.6.1. 
Using bundle exec may solve this. (Gem::LoadError)   
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:19:in `setup' 
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup'  
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/setup.rb:7:in `
<top (required)>' 
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'  
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require' 
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'   
from C:/Sites/treebook/config/boot.rb:6:in `<top (required)>'  
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'  
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require' 
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0/lib/rails/app_rails_loader.rb:42:in `block in exec_app_rails'  
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0/lib/rails/app_rails_loader.rb:32:in `loop'  
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0/lib/rails/app_rails_loader.rb:32:in `exec_app_rails'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0/lib/rails/cli.rb:6:in `<top (required)>'  
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
 from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require' 
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0/bin/rails:9:in `<top (required)>'  
from C:/RailsInstaller/Ruby1.9.3/bin/rails:23:in `load' from C:/RailsInstaller/Ruby1.9.3/bin/rails:23:in `<main>'