On Apr 19, 2014, at 2:38 PM, Matt Kazuka wrote: > Hello, its my first time using ruby or the terminal, I am on Mac OS X > Mavericks. > I am trying to set up ruby on rails, I have got the rvm installed, I > have also created a > "mkdir rails_projects" and I have "cd rails_projects" > > However, I haven't yet install rails, I did it on purpose because I > heard that its better to install it in each project separately instead > of globally. I am however, lost as to where in the project i should > install it at? is it ok if I install in my project directory > "rails_projects" that I created through mkdir? Thank you guys
Rails, like any other Ruby gem, is installed in your gems directory, and a binary `rails` application is also installed somewhere executable in your PATH so you can have the command-line tools. It doesn't matter where you "are" when you install it, because it will always end up in the same place (wherever `gem env` tells you your installation directory is). When you run `gem install rails`, you will get the latest version of Rails. And if you use `rails new widgets` in your projects directory, you will end up with a new folder named widgets, and the entire rails project stubbed out inside there. There will be a 1:1 dependency on the version of Rails that you used when you ran that command, and this dependency will be hard-coded into your Gemfile, which tells Bundler which version of Rails to use when starting your application and running any commands. You don't need to worry about this, it is all taken care of for you. A year from now, if you wanted to go back in time and use an older version of Rails to start a new project, after you've installed two other versions of Rails in the interim, you could use this syntax: `rails _4.0.4_ new anotherwidgetsite` and use that version. Walter > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/1d8f54bde552cbe908da714193a9ed29%40ruby-forum.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4ED876C6-91BF-43F8-A91A-489757BFF558%40wdstudio.com. For more options, visit https://groups.google.com/d/optout.

