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 trialSOS Norway
4,219 PointsAfter installing Homebrew & rvm, cannot find correct bin using ls bin/
I can run ruby -v , but cannot run bin/rails generate scaffold......
1 Answer
Brandon McClelland
4,645 PointsYou probably want to look in /usr/bin/ to find stuff. Assuming RVM was installed properly, you should be check it quickly by running rvm list
to see which Rubies RVM is managing. If you need to use a different version install it like this:
rvm install ruby-X.X.X
rvm --default use ruby-X.X.X
You probably already had a random Ruby installed just by having OSX but probably not rails. Since rails is just a gem you can add it with
gem search '^rails$' --all # to find rails versions available to you.
gem install rails -v rails_version # replace rails_version with the specific version you want, i.e. 5.1.4
SOS Norway
4,219 PointsSOS Norway
4,219 PointsThank You!