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!
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

Hilart Abrahamian
1,031 PointsRVM?
I am stuck on the "Generate a Rails Application" video where it says to use rvm. I have no idea what rvm is and when I do what the instructor does I get an error in my cmd stating that rvm is not an internal or external command. I am using windows.
3 Answers

James Barnett
39,199 PointsRVM is a mac thing, skip that step

Eddie Flores
9,110 PointsHilart, it does make a difference, because it depends on how and what version of Rails you have. RVM is a ruby version manager. It helps to install gems and other things to help facilitate your testing, or writing code.
I just wrote a mini-tutorial and covered RVM in it. It is not just "a mac thing"... it's very crucial for Macs and Linux, and almost a necessity to getting through this tutorial. If you are running on a PC, you will most likely need to install PIK to get the same results. There is more info on that here: https://github.com/vertiginous/pik

James Barnett
39,199 PointsRVM is necessary on OS X because Ruby ships with OS X and you will probably want to use a more up-to-date version of Ruby then the one that shipped with your version of OS X. For that reason it's necessary to use on OS X.
It is not just "a mac thing"... it's very crucial for Macs and Linux, and almost a necessity to getting through this tutorial.
RVM is great for gem collections for multiple projects, however considering the Build a Simple Rails Application is a single project that doesn't seem to follow.

Eddie Flores
9,110 PointsHave you tried to go through this tutorial lately on all three systems? I have. I have started and gone through it almost 10 times. Each time getting stuck somewhere and tracing it back to how I started it. Jason is using RVM in the tutorial... So I don't see why you would say that.

Hilart Abrahamian
1,031 PointsHow can I change the rails version to the version he is using? I think I have a problem also because I went to the same url he went to: 127.0.0.1:3000/statuses but I get an error page

Eddie Flores
9,110 PointsYou can type something like:
rails s -b localhost

Hilart Abrahamian
1,031 PointsWhat will this do?

Eddie Flores
9,110 PointsThat will bind your address from 0the default to your localhost. So that instead of going to http://0.0.0.0:3000 that is the default. You go to http://localhost:3000 or http://127.0.0.1:3000 and it will work.

James Barnett
39,199 PointsAccording to http://guides.rubyonrails.org/command_line.html that step is unnecessary.
rails s
will start a sever listening on http://localhost:3000

Hilart Abrahamian
1,031 PointsOkay so I uninstalled and reinstalled the correct ruby and rails version but now I have another error when I want to start rails, I typed rails server and instead of the server starting it give me some options?

Eddie Flores
9,110 PointsWhat options? Did you follow the tutorial correctly?

Hilart Abrahamian
1,031 PointsI got past that part and now I am stuck yet again, sorry to be such a burden I bet these are all simple fixes and I am just ignorant of the subject but I would really love to learn. Anyways, I go to the 127.0.0.1:3000/Statuses and I am presented with what appears to be an error: http://i.imgur.com/IdTV9Kw.png

Hilart Abrahamian
1,031 PointsOh I know in the description it said for windows users to go to 127.0.0.1 instead of 0.0.0.0 but my problem is, how can I change my active rails version?
Hilart Abrahamian
1,031 PointsHilart Abrahamian
1,031 PointsThanks a lot! I am using Rails 4.0.0 while he is using 3.2.6 is this going to be an issue in upcoming coding?
James Barnett
39,199 PointsJames Barnett
39,199 PointsI wouldn't recommend it, in general using a different major version (Rails 4 vs Rails 3) is asking for trouble when following a tutorial.