The Ruby on Rails Four Book

Retired

This book is no longer available for sale.

The Ruby on Rails Four Book

A Guide to the New Version of Rails

About the Book

This is a book about the next version of Ruby On Rails.

Author's Note

Please note that this book IS NOT done. Some errors are possible. Please let me know if you find any errors. You can do this by leaving a message with me. I will get back to you as soon as I can.

This book or this book's author is not asscioated in any with Ruby on Rails, Ruby, or core teams of Ruby on Rails or Ruby.

  • Ruby on Rails Development
  • Testing RSpec
  • Testing with Capybara
  • Using Agile Development
  • Instaling Ruby On Rails

About the Author

Table of Contents

    • Author’s Note
      • Welcome
      • Prerequisites
  • 1 From Nothing to Running
    • 1.1 What is Ruby on Rails
    • 1.2 Setting up a Development Environment
      • 1.2.1 Mac OS
        • 1.2.1.1 PostgreSQL
      • 1.2.2 Windows
      • 1.2.3 Linux Install
    • 1.3 Your Personal Development Environment
      • 1.3.1 Editors
      • 1.3.2 Integrated Development Environment
    • 1.4 Version Control and Git
      • 1.4.1 Git Commands
        • 1.4.1.1 Branching
        • 1.4.1.2 Merge
        • 1.4.1.3 Pushing
        • 1.4.1.4 Pulling
        • 1.4.1.5 Rebase
      • 1.4.2 Github
    • 1.5 Deploying
      • 1.5.1 Heroku
        • 1.5.1.1 Limitations
        • 1.5.1.2 Strengths
    • 1.6 Agile Development
      • 1.6.1 Stories
        • 1.6.1.1 Not Started
        • 1.6.1.2 Started
        • 1.6.1.3 Finished
        • 1.6.1.4 Delivered
      • 1.6.2 Continuous Deployment
      • 1.6.3 Test Driven Development
      • 1.6.4 Continuous Integration
  • 2 The Famous Fifteen Minute Blog
    • 2.1 Starting the Application
    • 2.2 Posts resource
      • 2.2.1 Model
      • 2.2.2 Viewing Pages Localy
      • 2.2.3 Views
        • 2.2.3.1 Blog View / Homepage
    • 2.3 Routes
    • 2.4 Comments Resource
      • 2.4.1 Model
      • 2.4.2 Forms
      • 2.4.3 Posts Model
      • 2.4.4 Comment Model
      • 2.4.5 Comment Controller
      • 2.4.6 Comment Routes
    • 2.5 Conclusion
  • 3 User Model
    • 3.1 Overview
    • 3.2 Stories Covered
    • 3.3 Creating the Model
      • 3.3.1 Test Setup
    • 3.4 Validations
    • 3.5 Passwords
      • 3.5.1 Encrpytion
      • 3.5.2 The Password Confirmation, or the lack there of
    • 3.6 User Restrictions
      • 3.6.1 Controllers
    • 3.7 End of Chapter

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $14 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub