puneetpandey.com

Ruby on Rails Delivery Expert Blog (ALPHA)

Hey there! Thanks for dropping by Theme Preview! Take a look around
and grab the RSS feed to stay updated. See you around!

Rails 3, Its here!!

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.

 

You can leave a response, or trackback from your own site.

19 Responses to “Rails 3, Its here!!”

  1. 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.

  2. 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.

  3. 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.

  4. get backlink says:

    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.

  5. seo backlink says:

    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

  6. diswasher says:

    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.

  7. 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…

  8. 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.

  9. 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…

  10. 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.

  11. 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.

  12. 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

  13. 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.

  14. 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.

  15. 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

  16. 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. . . .

  17. Sam says:

    Thanks very much for posting this good information! I am looking forward to checking out more blogs.

  18. ohh¡­great submit but truly?/? :P

Leave a Reply