Preface

The Rails phenomenon is sweeping through our industry with reckless disregard for established programming languages, long-standing conventions, or commercial support. You can get a whole lot of information about Rails from articles on the Web, excellent books, and even formal course work. However, there’s something missing: how does an established programmer—armed with nothing more than a little Ruby knowledge—go just beyond the basics and be productive in Rails?

With Rails: Up and Running, Second Edition, we are not going to reiterate the reference manual or replace Google. Instead, we’ll strive to give you the big picture of how Rails applications hold together and tell you where to go for the information that we don’t cover in the chapters. We’ll take you just beneath the covers of Active Record, the Rails framework that gives Ruby objects a database backing. You’ll get just deep enough to understand the “magic” features that perplex most Rails newbies. By understanding the big picture, you’ll be able to make better use of the best reference manuals to fill in the details.

We won’t try to make you digest a whole lot of words. Rather, we’ll give you the theory in the context of an end-to-end application. We’ll walk you through the creation of a simple project—one that is a little more demanding than a blog or shopping cart, but with a simple enough structure that a Rails beginner will be able to quickly understand what’s going on. In short, we’re going to let the code do the talking, and we’ll augment that code where you’ll need some help to understand exactly what’s going on.

We’re not going to try to cover each new feature. Instead, we’ll show you the ones we see as the backbone, forming the most important elements to understand. We will also cover the new migrations and REST features in some detail because various older books don’t cover those features in too much detail.

In short, we’re not trying to build a comprehensive Rails library—we’re going to give you the foundation you need to get up and running.

Who Should Read This Book?

Rails: Up and Running, Second Edition, is for experienced developers who are new to Rails and possibly to Ruby. To use this book, you don’t have to be a strong Ruby programmer; we do expect you to be a programmer, though. You should know enough about your chosen platform to be able to write programs, install software, run scripts using the system console, edit files, use a database, and understand how basic web applications work.

Get Rails: Up and Running, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.