Cover Image For Agile Web Development with Rails...
480 pages,
ISBN: 978-1-93435-654-8

Rails just keeps on changing. Rails 3 and Ruby 1.9 bring hundreds of improvements, including new APIs and substantial performance enhancements. The fourth edition of this award-winning classic has been reorganized and refocused so it’s more useful than ever before for developers new to Ruby and Rails.

Rails 3 is a major release—the changes aren’t just incremental, but structural. So we decided to follow suit. This book isn’t just a mild reworking of the previous edition to make it run with the new Rails. Instead, it’s a complete refactoring.

You’ll still find the Depot example at the front, but you’ll also find testing knitted right in. Gone are the long reference chapters—that’s what the web does best. Instead you’ll find more targeted information on all the aspects of Rails that you’ll need to be a successful Web developer.

eBook Now Updated for Rails 3.2

Rails 3.1 and Rails 3.2 introduce many user-facing changes, and this e-book release has been updated to match all the latest changes and new best practices in Rails 3.1 and Rails 3.2. This includes full support for Ruby 1.9.2 hash syntax; incorporation of the new Sprockets 2.0 Asset Pipeline, including SCSS and CoffeeScript; jQuery now being the default; reversible migrations; JSON response support; Rack::Cache, and much more.

Please note the Rails 3.2 updates are included only in the ebooks sold by us.

Buy Now

Buy the eBook and get these DRM-free formats:
  • epub (for iPhone/iPad, Android, eReaders)
  • mobi (for Kindle)
  • PDF
 

About this Book

Ruby on Rails helps you produce high-quality, beautiful-looking web applications quickly. You concentrate on creating the application, and Rails takes care of the details.

Tens of thousands of developers have used this award-winning book to learn Rails. It’s a broad, far-reaching tutorial and reference that’s recommended by the Rails core team. If you’re new to Rails, you’ll get step-by-step guidance. If you’re an experienced developer, this book will give you the comprehensive, insider information you need.

Rails has evolved over the years, and this book has evolved along with it. We still start with a step-by-step walkthrough of building a real application, and in-depth chapters look at the built-in Rails features. This edition now gives new Ruby and Rails users more information on the Ruby language and takes more time to explain key concepts throughout. Best practices on how to apply Rails continue to change, and this edition keeps up. Examples use cookie backed sessions, HTTP authentication, and Active Record-based forms, and the book focuses throughout on the right way to use Rails. Additionally, this edition now reflects Ruby 1.9, a new release of Ruby with substantial functional and performance improvements.

Contents and Extracts

Full Table of Contents

Introduction

  • Getting Started
  • Building an Application
    • The Depot Application
    • Task A: Creating the Application
    • Task B: Validation and Unit Testing
    • Task C: Catalog Display
    • Task D: Cart Creation
    • Task E: A Smarter Cart
    • Task F: Add a Dash of Ajax
    • Task G: Check Out!
    • Task H: Sending Mail
    • Task I: Logging In
    • Task J: Internationalization
    • Task K: Deployment and Production
    • Depot Retrospective
  • Rails in Depth
    • Finding Your Way Around Rails
    • Active Record
    • Action Dispatch and Action Controller
    • Action View
    • Caching
    • Migrations
    • Non-Browser Applications
    • Rails’ Dependencies
    • Rails Plugins
    • Where to Go From Here

About the Author

Sam Ruby is a prominent software developer who is a co-chair of the W3C HTML Working Group and has made significant contributions to many of the Apache Software Foundation’s open source software projects. He is a Senior Technical Staff Member in the Emerging Technologies Group of IBM.

Dave Thomas, as one of the authors of the Agile Manifesto, understands agility. As the author of Programming Ruby, he understands Ruby. And, as an active Rails developer, he knows Rails.

David Heinemeier Hansson is the creator of the Rails framework.