Rails in a Nutshell

Cody Fauser

James MacAulay

Edward Ocampo-Gooding

John Guenin

This work has been released under the Creative Commons Attribution-Noncommercial license.

Abstract

Note

You are reading the text of an O'Reilly book that's under development. The authors are publishing the book to this site as it's being written, and we're putting it here to get feedback from you. This book uses the Open Feedback Publishing System (OFPS), an O'Reilly experiment that tries to bridge the gap between private manuscripts and public blogs.

Next to every paragraph, there is a link you can use to comment on what you're reading. We are grateful for any feedback you have: questions, comments, suggestions, and corrections are all welcome and appreciated.

7 comments

  1. Mike Summers Posted 4 months, 19 days and 22 hours ago

    Will there be an Action View Chapter? A placeholder would be good.

  2. Cody Fauser Posted 4 months, 19 days and 21 hours ago

    Mike,

    There will be. The incomplete sections are currently not shown, but you're right, it would be good to have the table of contents complete with the entire structure. However, that might also make it frustrating if most parts are empty.

  3. Justin Blake Posted 4 months, 13 days and 18 hours ago

    I think a complete table of contents would help so we're not worried something important might not be covered.

  4. Baumgertner Alex Posted 4 months, 12 days and 23 hours ago

    Hi. We would like to translate this book to russian lang, have we rights to do this? We start at http://railstranslate.novarchiv.org, but Wiki is not usable to do this :). Can you recommend any service for open-translate?

    PS: Thanks for this book :)

  5. Baumgertner Alex Posted 4 months, 12 days and 22 hours ago

    We are http://translated.by/you/rails-in-a-nutshell/ :)

  6. Faisal N Jawdat Posted 3 months, 16 days and 23 hours ago

    Can we get a one-page version of the book (including comments) so we can load it into our Kindles or what have you?

  7. Zaid Zawaideh Posted 1 month, 3 days and 16 hours ago

    I am unable to post comments next to the paragraphs.. is this the only place to do so?

Add a comment

Rails in a Nutshell is a concise introduction to Rails, an overview of commands and configurations, and a guide to the parts of Rails you’ll be using every day.

Full of examples and explanations, this book kicks your skills into high-gear by showing you how to take advantage of the Model-View-Controller concept with tiny but expressive bits of Ruby that power some of the world’s biggest and fastest web services.

Fast to launch and a pleasure to get there are hallmarks of working with Rails. Rails in a Nutshell gets the right stuff in your hands quickly and without fuss, so you can experience it yourself.

Follow the progress of the book on Twitter twitter.com/railsnutshell, at railsinanutshell.com, and at the book's catalog page.


1. Rails in a Nutshell
Architecture
Model
View
Controller
More
Plugins
Getting Started
Basic Authentication
Validation
Atom/RSS Syndication
Comments
2. Action Controller
Sending Files
Sessions
Using the session
Session Stores
Configuration
3. Active Record
Connecting to a Database
A Model's Names
Developing your Database Schema with Migrations
Associations
belongs_to
has_one
Options
Callbacks
Validations
When validations don't happen
Creating
Finding
Conditions
Updating
Deleting
Tracking Changes
Named Scopes
Dynamic Scopes
Observers
Aggregation
4. Active Resource
Getting Started
Background
Client and Server
Web Service Client
Web Service Server
Finding Resources
Finding all resources
Finding a single resource by ID
Finding resources from custom paths
Creating Resources
Creating a resource
Validation and Errors
Updating Resources
Deleting Resource
Making Custom Requests
HTTP Authentication
5. Action Mailer
Generating Mailers
Sending Email
Mailer Models
Rendering the Email Body
Delivering Email
Generating URLs
HTML Email
Adding Attachments
Configuration
SMTP Configuration
Sendmail Configuration
Testing Mailers
Unit Testing
Functional Testing
6. Active Support
7. Testing
Introduction
Terminology
Unit Tests
Assertions
Test Helper Methods
Fixtures
Functional Tests
View Tests
Integration Tests
Creating an integration test
Integration testing commands
Testing the article workflow
Testing multiple sessions
Extending integration tests with helpers
Running tests
Using rake
Test environment
Debugging within a test
8. Plugins
Plugin Listing
Delayed Job
Exception Notification
SSL Requirement
9. Appendix
Configuration
Configuration
Environments
Action Mailer Configuration
Rails Initializers
Logging
Configuration
Status Codes
Rails Status Code to Symbol Mapping
Memcached
Installing Memcached
You must sign in or register before commenting

Atom Icon Comments on this page or Comments on the whole book.