How to: Get Started with Ruby & Rails

Ruby on Rails is a popular web application framework that automates the creation of common web applications. It’s a great choice for many developers because it allows you to program quickly and have fewer opportunities to make errors. Rails’ rise in popularity has brought a plethora of information and we’ve found the best that’s out there. Get your Rails experience started right with our picks for the best books, web resources and hosts for Ruby on Rails.

Best books

There are quite a few Ruby on Rails books out there. Here are a few to that would be good to work through, then keep on hand. These will provide the knowledge you need to get started as well as serve as handy references for later.

Ruby on Rails: Up and Running by Bruce Tate and Curt Hibbs: Ruby on Rails: Up and Running is a great reference for those just getting started in Rails. It offers an easy way to learn and will set you up with a solid foundation of knowledge. The book walks new users through the elements that are most important to understand, covering concepts from simple database applications to elaborate Ajax. Thin and simple, it serves as a quick introduction for those that want to jump in and learn Ruby on Rails quickly.

Rails Cookbook by Rob Orsini: The Rails Cookbook is great for learning because it’s a “how-to” book. Readers like it because it’s a “’Here’s how to do the things you want to do’ kind of book.” It’s aimed at programmers who are familiar with web development, but have not yet worked in Rails. It offers real-world challenges, providing solutions and a discussion of how the solution works. This allows users to learn how to adapt the challenges to their own applications. Rely on The Rails Cookbook for a straightforward approach that will help you learn faster.

Agile Web Development with Rails: Agile Web Development with Rails is an award winning book, co-authored by David Hansson, the creator of Rails. It’s been updated for Rails 1.2 in the second edition. It’s ideal for users who are just getting started learning Ruby on Rails because it doesn’t bother with overloading readers with too much detail, opting instead to offer details in the appendices if you’re interested in learning about them. Readers like this book because its format is great for getting your feet wet. You’re walked through the process of building a shopping cart and then later delve into exactly how Rails works. It’s written for all skill levels in an easy to understand language.

Best web resources

The web has a lot to offer for getting your feet wet with Ruby on Rails. Many of them provide interactive, innovative ways to learn Ruby hands on, so they’re a great option for people who learn best by just throwing themselves into something new. These resources are easily accessible, fun to use, and best of all, free.

Try Ruby!: This website offers an ingenious browser-based tutorial for the Ruby language. All you need is a web browser and 15 minutes. In this tutorial, you’ll learn Ruby by typing provided codes into a prompt screen to see how they run. Once you see how they work, the commands and concepts are explained in detail. Try Ruby points out basic concepts and common errors, helping users to lay a solid foundation for their Ruby on Rails education. Check it out for a quick, fun look at Ruby.

Four Days on Rails by John McCreesh: This guide, available in PDF, offers new users a view of the things they’ll need to do to get started in Rails development. It’s ideal for learning because it’s well organized and offers very simple tasks. This makes it easy to grasp the concepts put forth. The tutorial covers topics like how to create a scaffold code, build a to-do list application and more. As the title suggests, the document is split up into four days, but most users can work through it faster than that. Break it up into four days or hunker down for an extended session of Rails tutoring.

Ruby on Rails Cheat Sheet: When you’re just getting started, it may be hard to remember every little detail that you need to know. This cheat sheet offers a way to keep lots of useful information on hand for quick reference. The sheet offers a reference for Rails’ directory structure, pre-defined variables, reserved words, regular expression syntax and methods. The author used expert advice, including that of the Rails original developer, David Heinemeier Hansson. Keep this guide handy so you’ll have all the information you need close by.

How to get started developing

Even if you’re not ready to launch your site yet, you need a space to play around in to see how your web applications will execute in the real world. To do this, you need to find a good host that you can trust with your hard work. Check out these hosts for reasonable, reliable service.

Slicehost: Slicehost offers Rails developers a hosting solution for those looking for low cost with a quick setup. It is a great option for cheap learning. Nuby on Rails recommends Slicehost for developer education: “Spending $20/month on your own education will be worthwhile and will help you make mistakes on your own before making them on a paying client project. Slicehost would be a great environment for that kind of self-education.” For quick setup, Slicehost provides a Wiki for a 5-minute installation of Ruby on Rails. Use Slicehost for cheap and easy Rails hosting.

RailsMachine: RailsMachine has a quick setup, so it’s easy to get started and get down to work on your Rails education. They have a gem for Ruby on Rails that minimizes setup to just a few easy commands. RailsMachine is a good option for when you’re ready to launch your site, too. They offer reliable uptime, knowledgeable staff, superior support and high quality hosting. Work with RailsMachine if you’re willing to spend money on a trusted source.

TextDrive: TextDrive is the official Ruby on Rails host, which makes it another great option for Ruby on Rails education. They have knowledgeable staff and all of the latest Rails extras, so you can be sure that they will provide you with the best resources a Rails host can give you. Original Rails developer David Heinemeier Hansson supports TextDrive because with them, “you’ll always have the latest version available as GEMs, you can keep your code under Subversion (and show it off with Trac), and have your choice of PostgreSQL or MySQL for the database.” Plus, he points out, 50% of the profits from your TextDrive plan will go to supporting Rails development.

For more information on Ruby on Rails, visit the following sources:

Ruby on Rails: www.rubyonrails.org
Loud Thinking by David Heinemeier Hansson: www.loudthinking.com
Wikipedia: Ruby on Rails: http://en.wikipedia.org/wiki/Ruby_on_Rails

Did you enjoy this article?

Don't forget to subscribe to our RSS feed!

Comments are closed.