Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Overview

Beginning Rails 3 is the practical starting point for anyone wanting to learn how to build dynamic web applications using the latest release of the Rails framework for Ruby. You'll learn how all of the components of Rails fit together and how you can leverage them to create sophisticated web applications with less code and more joy.

This book is particularly well suited to those with little or no experience with web application development, or who have some experience but are new to Rails. Beginning Rails 3 assumes basic familiarity with web terms and technologies, but doesn't require you to be an expert. Rather than delving into the arcane details of Rails, the focus is on the aspects of the framework that will become your pick, shovel, and axe. Part history lesson, part introduction to object-oriented programming, and part dissertation on open source software, this title doesn't just explain how to do something in Rails, it explains why.

  • Learn to create Rails web applications from scratch

  • Includes a gentle introduction to the Ruby programming language

  • Completely updated to include the new features of Rails 3

Subscriber Reviews

Average Rating: 4.428571428571429 out of 5 rating Based on 7 Ratings

"Fantastic!" - by Bala on 30-MAY-2011
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
I have read Rails book(s) in the past for previous version of Rails and some really inspired me to dig deeper into Rails.  This is one such a book for Rails 3.  Very useful and practical examples.  Well done guys!.
Report as Inappropriate

"Beginning Rails 3" - by Kelly Brant on 23-FEB-2011
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
I found Beginning Rails 3 to be a gentle introduction to rails. I came from a C/java background and comfortable with ruby, sql and bash.

Intro: Ch 1,2,3 contain the obligatory 'getting started' material. Fortunately the material is easily digestible and relatively brief. I wanted to build the sample application as I read the material and went through processes of updating rails (on OS X) and getting the first app running. Everything here worked on my laptop as described in the book.

Models: Ch 4,5 walk through just enough ORM to carry the reader through the rest of the book. The authors didn't get wrapped up in sidebar discussions of ActiveRecord outside the scope of the sample project. I liked using the rails console to learn the minimum basics of creating and using models.

Controllers/Views: Ch. 6,7 walk through building the 'web side' of the app based on the models from the previous two chapters. A good understanding of the models before building the controllers and views made the exercise much easier to follow and anticipate.

Samplers: Ch 8, 10, 11 are sampler chapters each of which could warrant an entire volume. A consistent theme throughout the book is 'just enough' and these sampler chapters give the flavor if not the feast. The chapter on ajax replaces prototype with jquery (thank you) and ajaxifies a single form. It's enough to get started. The chapter on internationalization gives just one approach to creating a multilingual site. It's an ugly problem and this book should only be viewed as an introduction--a good introduction but an introduction nonetheless. The same can be said for the chapter on testing. For someone just getting into rails, the material on writing tests is enough without being overwhelming.

Skipped: I read but skipped working the tutorial for Ch 9, 12, 13. The material seemed simple enough and I felt the other chapters gave me an adequate base of understanding to start working on a simple app of my own.

These guys really worked to keep their code clean and in sync with the book. I kept getting an warning (Object#id will be deprecated; use Object#object_id) on a partial when working through the chapter on testing. It turned out that the error was upstream (a case of id vs. :id). I downloaded the chapter source and diff'd against my work. Aside from some whitespace differences (and typo's on my part), the files matched.

This is where I'd normally offer my suggested revisions. I really don't have any. This is, after all, *Beginning* Rails 3. No book can cover everything. Nor should it try. So, what's next? Speaking for myself, the next book to read is on test development.

Report as Inappropriate

"Disappointing" - by Tharnid on 09-SEP-2010
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
I made it to pg. 43 and couldn't get past adding excerpt and location to the database.  I am not sure what is wrong.  No errata on the Apress site.  Here is the problem area.  I generated the db migration and it doesn't like this line of code:

class AddExcerptAndLocationToArticles.rb > ActiveRecord::Migration

Not sure what is wrong with this :-(

I am getting really frustrated with the lack of error free code in these books.

Report as Inappropriate

Table of Contents

 Index