In these days lots of people are talking about RAILS 3, the biggest and most happening version as compared with the previous ones. There are many changes in each and every part of the application.
Here, we will cover the changes, dependencies, how we install rails 3 on windows and linux and a basic sample RAILS 3 application..
So Here we go:
1st We will install rails 3 on windows.
Note: To Install rails 3, you must be having ruby-1.8.7 or higher, So If you’re running with ruby-1.8.6, it’s time to upgrade now.
To do that download the executable version of ruby(either 1.8.7 or 1.9.1) click here and download Ruby 1.9.1-p378 (RC2). Once done run the setup and check both the option as per the below image.

Once done with the installation, You need to copy 3 DLL files under /Ruby19/bin folder and these files are:
1. readline.dll (Download from here)
2. ssleay32.dll (Download from here)
3. zlib.dll (Download from here)
4. OpenSSL(Download from Here)
For better examples, you can also refer UKNatureBlog
Once you copied all the dependencies, now it’s time to start few gems, which will help us to install rails 3.0.
Do update your system with this:
gem update –system
Because bundler and i18n looks for rubygem >= 1.3.6
To install these gems, open up command prompt and type:
gem install tzinfo builder memcache-client rack rack-test rack-mount erubis mail text-format thor bundler i18n
and you’ll find progress something like this:

You have to install rack as well in order to install rails 3. To do that type:
gem install rack
Once done with it, now its time to install rails 3.0, so do this:
gem install rails –pre
Note: Don’t worry if your installation fails somewhere in the middle. Important is your gems(like activerecord, activeresource etc.) should be installed successfully, no matter ri and rdoc encounters an error.
So far we’ve installed ruby-1.9 and rails-3.0. Now it’s time to create your first rails application. Here I am assuming that you already have mysql installed in your system. So open up your command prompt and fire this command.
rails myrails3_app -J -d mysql
and you’ll see progress like this:

Other possible parameters:
1. –skip-activerecord
Now let’s look at the directory structure which rails-3.0 has created for us:

At first glance you will notice that, there is no change in the directory structure, everything is the same (except for two files config.ru and Gemfile).
We will create a sample RAILS 3 Application in our next tutorial soon.


19 comments
Comment by forever young lyrics jay z on May 19, 2010 at 12:55 am
This is a great post, I stumbled across your article while looking for some information on SQL. Thanks for sharing, I’ll be sure to recommend this site to others.
Comment by automatic directory submitter on May 22, 2010 at 9:56 pm
This is a really good read for me, Must admit that you are one of the best bloggers I ever saw.Thanks for posting this informative article.
Comment by laptop backpack on May 24, 2010 at 2:48 pm
I wanted to say that it’s nice to know that someone else also mentioned this as I had trouble finding the same info elsewhere. This was the first place that told me the answer. Thanks.
Comment by get backlink on May 25, 2010 at 10:22 am
Thanks for taking this opportunity to discuss this, I feel strongly about it and I take pleasure in learning about this topic. If possible, as you gain information, please add to this blog with new information. I have found it extremely useful.
Comment by seo backlink on May 25, 2010 at 11:29 pm
Though I would’ve loved it much more if you added a relevant video or at least pictures to back up the explanation, I still thought that your write-up quite helpful. It’s usually hard to make a complicated matter seem very easy. I enjoy your weblog and will sign up to your feed so I will not miss anything. Fantastic content
Comment by diswasher on May 27, 2010 at 12:33 pm
Resources like the one you mentioned here will be very useful to me! I will post a link to this page on my blog. I am sure my visitors will find that very useful.
Comment by forum profile service on May 27, 2010 at 12:42 pm
Thank you for another fantastic blog. Where else could I get this kind of information written in such an incite full way? I have a project that I am just now working on, and I have been looking for such information… Regards…
Comment by forum profile submission service on May 27, 2010 at 12:42 pm
Intimately, the post is in reality the freshest topic on this registry related issue. I concur with your conclusions and will eagerly look forward to your forthcoming updates. Saying thanks will not just be enough, for the wonderful clarity in your writing. I will immediately grab your rss feed to stay abreast of any updates.
Comment by forex market legally on May 27, 2010 at 3:10 pm
Aw, this was a really quality post. In theory I’d like to write like this also – taking time and real effort to make a good article… but what can I say… I procrastinate alot and never seem to get anything done… Regards…
Comment by blogging bank on May 28, 2010 at 12:36 am
This is my second visit to your blog. We are starting a brand new initiative in the same niche as this blog. Your blog provided us with valuable information to work on. You have done a marvellous job.
Comment by forum profile submission service on May 28, 2010 at 1:04 am
Merely want to say your article is brilliant. The clearness in your post is simply spectacular and i can take for granted you are an expert on this field. Well with your permission allow me to grab your rss feed to keep up to date with forthcoming post. Thanks a million and please keep up the sound work.
Comment by create forum profile service on May 28, 2010 at 1:04 am
Hi vey nice interesting blog im from newcastel i found this on aol I’m in the crane hire company business,i found this blog very interesting good luck with it i will return to this blog soon
Comment by fireworks lyrics drake on May 28, 2010 at 3:27 am
Hey this is a great story. I’m going to email this to my friends. I stumbled on this while surfing for some new lyrics, I’ll be sure to visit regularly. thanks for sharing.
Comment by forex automoney on May 28, 2010 at 3:03 pm
Thank you for such a fantastic blog. Where else could one get this kind of info written in such an incite full way? I have a presentation that I am just now working on, and I have been looking for such information.
Comment by Rusty Chernak on June 18, 2010 at 9:15 am
I admire ur job!
Comment by louis vuitton on June 28, 2010 at 10:17 am
Hello, I love your website. This is a nice site and I wanted to post a little note to let you know, good job! Thanks Katy
Louis Vuitton
vuitton
Comment by Anna Fermanova on July 29, 2010 at 11:28 am
That is very inspirational stuff. Never known that feeling can be this diversified. Thanks for all the enthusiasm to extend such helpful information on this post. . . .
Comment by Sam on September 21, 2010 at 2:58 am
Thanks very much for posting this good information! I am looking forward to checking out more blogs.
Comment by Marcie Andrade on September 26, 2010 at 11:39 am
ohh¡great submit but truly?/?