I'm back to playing with Rails a bit. NetBeans for Ruby is gone, so I'm going to do things the macho Rails way and just develop with an editor and a bunch of terminal windows. (One of my open source rules is "do whatever everyone else is doing." Trying to use an IDE with Rails was always a violation of that rule.)
rvm is a great idea. I found it really helpful to read about named gemsets early on. I had to install rvm, then install rails and a few other packages.
- Install the Ruby Version Manager (rvm) from these instructions
- Put this line at the end of your .bashrc: "[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function"
- Run "rvm requirements" in a terminal window
- Install all the packages the output of "rvm requirements" tells you to install (apt-get install...). You must do this before you start installing any rubies with rvm. If you don't, you may have all sorts of problems crop up later, like weird messages from irb ("Readline was unable to be required, if you need completion or history install readline then reinstall the ruby.")
- Do the following in a terminal window:
rvm 1.9.3
rvm --default 1.9.3
gem install rails
sudo apt-get install sqlite
sudo apt-get install libsqlite3-dev
sudo apt-get install nodejs
Now create an application to test:
rails new testapp
cd testapp
rails server
Browse to localhost:3000 and you should see the Rails default page.
you made this easy for me :)
ReplyDeleteThanks...