Learning Rails
By
Simon St. Laurent,
Edd Dumbill
November 2008
Pages: 442
| Table of Contents
| Forum
| Colophon
Table of Contents
-
Chapter 1 Starting Up Ruby on Rails
-
Getting Started in the Online Cloud: Heroku
-
Getting Started with Instant Rails
-
Getting Started at the Command Line
-
What Server Is That?
-
Test Your Knowledge
-
Chapter 2 Rails on the Web
-
Creating Your Own View
-
What Are All Those Folders?
-
Adding Some Data
-
How Hello World Works
-
Protecting Your View from the Controller
-
Parentheses Are (Usually) Optional
-
Adding Logic to the View
-
Test Your Knowledge
-
Chapter 3 Adding Web Style
-
I Want My CSS!
-
Layouts
-
Setting a Default Page
-
Test Your Knowledge
-
Chapter 4 Controlling Data Flow: Controllers and
Models
-
Getting Started, Greeting Guests
-
Application Flow
-
Keeping Track: A Simple Guestbook
-
Finding Data with ActiveRecord
-
Test Your Knowledge
-
Chapter 5 Accelerating Development with Scaffolding and REST
-
A First Look at Scaffolding
-
REST and Controller Best Practices
-
Examining a RESTful Controller
-
Escaping the REST Prison
-
Test Your Knowledge
-
Chapter 6 Presenting Models with Forms
-
More Than a Name on a Form
-
Generating HTML Forms with Scaffolding
-
Form As a Wrapper
-
Creating Text Fields and Text Areas
-
Creating Checkboxes
-
Creating Radio Buttons
-
Creating Selection Lists
-
Dates and Times
-
Labels
-
Creating Helper Methods
-
Putting the Form Body in a Partial
-
Test Your Knowledge
-
Chapter 7 Strengthening Models with Validation
-
Without Validation
-
The Original Model
-
The Power of Declarative Validation
-
Managing Secrets
-
A Place on the Calendar
-
Beyond Simple Declarations
-
Test Your Knowledge
-
Chapter 8 Improving Forms
-
Adding a Picture by Uploading a File
-
Standardizing Your Look with Form Builders
-
Test Your Knowledge
-
Chapter 9 Developing Model Relationships
-
Connecting Awards to Students
-
Connecting Students to Awards
-
Nesting Awards in Students
-
Many-to-Many: Connecting Students to Courses
-
What’s Missing?
-
Test Your Knowledge
-
Chapter 10 Managing Databases with Migrations
-
What Migrations Offer You
-
Migration Basics
-
Inside Migrations
-
Test Your Knowledge
-
Chapter 11 Debugging
-
Creating Your Own Debugging Messages
-
Logging
-
Working with Rails from the Console
-
The Ruby Debugger
-
Test Your Knowledge
-
Chapter 12 Testing
-
Test Mode
-
Setting Up a Test Database with Fixtures
-
Unit Testing
-
Functional Testing
-
Integration Testing
-
Beyond the Basics
-
Test Your Knowledge
-
Chapter 13 Sessions and Cookies
-
Getting Into and Out of Cookies
-
Storing Data Between Sessions
-
Test Your Knowledge
-
Chapter 14 Users and Authentication
-
Installation
-
Storing User Data
-
Controlling Sessions
-
Classifying Users
-
More Options
-
Test Your Knowledge
-
Chapter 15 Routing
-
Creating Routes to Interpret URIs
-
Generating URIs from Views and Controllers
-
Infinite Possibilities
-
Test Your Knowledge
-
Chapter 16 Creating Dynamic Interfaces with Rails
and Ajax
-
Ajax Basics
-
Supporting Ajax with Rails
-
Managing Enrollment through Ajax
-
Moving Further into Ajax
-
Test Your Knowledge
-
Chapter 17 Mail in Rails
-
Sending Text Mail
-
Sending HTML Mail
-
Sending Complex HTML Email
-
Receiving Mail
-
Test Your Knowledge
-
Chapter 18 Securing, Managing, and Deploying Your Rails Projects
-
Securing Your Application
-
Deploying Rails Applications
-
Test Your Knowledge
-
Chapter 19 Making the Most of Rails—And
Beyond
-
Keep Up with Rails
-
Plug-ins
-
Ruby
-
Web Services
-
Explore Other Ruby Frameworks
-
Migrating Legacy Applications to Rails
-
Keep Exploring
-
Appendix An Incredibly Brief Introduction to
Ruby
-
How Ruby Works
-
How Rails Works
-
Getting Started with Classes and Objects
-
Comments
-
Variables, Methods, and Attributes
-
Logic and Conditionals
-
Appendix An Incredibly Brief Introduction to Relational Databases
-
Tables of Data
-
Databases, Tables, and Rails
-
Appendix An Incredibly Brief Guide to Regular
Expressions
-
What Regular Expressions Do
-
Starting Small
-
The Simplest Expressions: Literal Strings
-
Character Classes
-
Escaping
-
Modifiers
-
Anchors
-
Sequences, Repetition, Groups, and Choices
-
Greed
-
More
-
Appendix A Catalog of Helper Methods
-
Calling Helper Methods
-
ActiveRecordHelper
-
AssetTagHelper
-
AtomFeedHelper and AtomFeedHelper::AtomFeedBuilder
-
BenchmarkHelper, CacheHelper, and CaptureHelper
-
DateHelper
-
DebugHelper
-
FormHelper, FormTagHelper, and FormOptionsHelper
-
JavaScriptHelper
-
NumberHelper
-
PrototypeHelper
-
RecordIdentificationHelper
-
SanitizeHelper
-
ScriptaculousHelper
-
TagHelper
-
TextHelper
-
UrlHelper
-
Appendix Glossary
-
Speaking in Rails
-
Colophon
Return to Learning Rails