I've set up NetBeans for Ruby on Rails with NetBeans twice today -- first at work for a friend who is moving to RoR development from PHP, and then at home where a dying hard disk forced me to get a new hard disk and install all the software I require all over again.
I realized that setting up a Rails environment might seem a daunting task for a newbie. Here's a list of steps to get Ruby on Rails working on a windows machine. I use NetBeans with MySQL because I found the least trouble to set up.
That's it... you can now use NetBeans as a rails development environment. I know that was a very long list of steps to get a rails IDE working, but it's worth the trouble. Using ruby on rails as your development environment will make up for the effort required to set up the IDE.
What IDE do you use for rails development? When you were new to rails development, did you have trouble setting up a development environment? And in case you're a newbie rails developer, is that how you got here?
[Read more...]
I realized that setting up a Rails environment might seem a daunting task for a newbie. Here's a list of steps to get Ruby on Rails working on a windows machine. I use NetBeans with MySQL because I found the least trouble to set up.
- Go to www.ruby-lang.org and download the ruby one-click installer for Windows.
- Install ruby using the one-click installer, and remember to select RubyGems when asked what components you want installed.
- Download and install MySQL from http://dev.mysql.com/downloads/.
- You will need java to run NetBeans, so download java from http://www.java.com/en/ and install.
- Download the latest version (6.7 at the moment) of NetBeans from http://www.netbeans.org/. You might choose the complete NetBeans package or the Ruby only version. Either of them will do.
- Install rails for your ruby installation by using this command in the command line:
gem install rails
- You will also need the ruby MySQL driver to be installed to be able to use MySQL databases. For this, install the
mysql
gem by this command:
gem install mysql
- When I started NetBeans and created a new rails project, NetBeans asked me to update ruby gems from 1.3.1 to 1.3.2. Unfortunately, the one click installer is available only for Ruby 1.8.6 and contains gem version 1.3.1, so you'll have to update rubygems using the command line:
gem update --system
That's it... you can now use NetBeans as a rails development environment. I know that was a very long list of steps to get a rails IDE working, but it's worth the trouble. Using ruby on rails as your development environment will make up for the effort required to set up the IDE.
What IDE do you use for rails development? When you were new to rails development, did you have trouble setting up a development environment? And in case you're a newbie rails developer, is that how you got here?