Preface; Who This Book Is F⨠Who This Book Is Not F⨠What You''ll Learn; Ruby and Rails Sty⤠Other Options; Rails Versions; If You Have Problems Making Examples Work; If You Like (or Don''t Like) This Book; Conventions Used in This Book; Using Code Examples; How to Contact Us; Acknowledgments;Chapter 1: Starting Up Ruby on Rails; 1.1 Getting Started at the Command Liâ 1.2 What Server Is That?; 1.3 Test Your Knowledâ¥Chapter 2: Rails on the Web; 2.1 Creating Your Own View; 2.2 What Are All Those Folders?; 2.3 Adding Some Data; 2.4 How Hello World Works; 2.
5 Protecting Your View from the Controller; 2.6 Parentheses Are (Usually) Optional; 2.7 Adding Logic to the View; 2.8 Test Your Knowledâ¥Chapter 3: Adding Web Sty⤠3.1 I Want My CSS!; 3.2 Layouts; 3.3 Setting a Default Pa⥠3.4 Test Your Knowledâ¥Chapter 4: Controlling Data Flow: Controllers and Models; 4.
1 Getting Started, Greeting Guests; 4.2 Application Flow; 4.3 Keeping Track: A Simple Guestbook; 4.4 Finding Data with ActiveRecord; 4.5 Test Your Knowledâ¥Chapter 5: Accelerating Development with Scaffolding and REST; 5.1 A First Look at Scaffolding; 5.2 REST and Controller Best Practices; 5.3 Examining a RESTful Controller; 5.
4 Escaping the REST Prison; 5.5 Test Your Knowledâ¥Chapter 6: Presenting Models with Forms; 6.1 More Than a Name on a Form; 6.2 Generating HTML Forms with Scaffolding; 6.3 Form As a Wrapper; 6.4 Creating Text Fields and Text Areas; 6.5 Creating Checkboxes; 6.6 Creating Radio Buttons; 6.
7 Creating Selection Lists; 6.8 Dates and à 6.9 Labels; 6.10 Creating Helper Methods; 6.11 Putting the Form Body in a Partial; 6.12 Test Your Knowledâ¥Chapter 7: Strengthening Models with Validation; 7.1 Without Validation; 7.2 The Original Model; 7.
3 The Power of Declarative Validation; 7.4 Managing Secrets; 7.5 A Place on the Calendar; 7.6 Beyond Simple Declarations; 7.7 Test Your Knowledâ¥Chapter 8: Improving Forms; 8.1 Adding a Picture by Uploading a Fi⤠8.2 Standardizing Your Look with Form Builders; 8.3 Test Your Knowledâ¥Chapter 9: Developing Model Relationships; 9.
1 Connecting Awards to Students; 9.2 Connecting Students to Awards; 9.3 Nesting Awards in Students; 9.4 Many-to-Many: Connecting Students to Courses; 9.5 What''s Missing?; 9.6 Test Your Knowledâ¥Chapter 10: Managing Databases with Migrations; 10.1 What Migrations Offer You; 10.2 Migration Basics; 10.
3 Inside Migrations; 10.4 Test Your Knowledâ¥Chapter 11: Debugging; 11.1 Creating Your Own Debugging Messages; 11.2 Logging; 11.3 Working with Rails from the Conso⤠11.4 The Ruby Debugger; 11.5 Test Your Knowledâ¥Chapter 12: Testing; 12.1 Test Mode; 12.
2 Setting Up a Test Database with Fixtures; 12.3 Unit Testing; 12.4 Functional Testing; 12.5 Integration Testing; 12.6 Beyond the Basics; 12.7 Test Your Knowledâ¥Chapter 13: Sessions and Cookies; 13.1 Getting Into and Out of Cookies; 13.2 Storing Data Between Sessions; 13.
3 Test Your Knowledâ¥Chapter 14: Users and Authentication; 14.1 Installation; 14.2 Storing User Data; 14.3 Controlling Sessions; 14.4 Classifying Users; 14.5 More Options; 14.6 Test Your Knowledâ¥Chapter 15: Routing; 15.1 Creating Routes to Interpret URIs; 15.
2 Generating URIs from Views and Controllers; 15.3 Infinite Possibilities; 15.4 Test Your Knowledâ¥Chapter 16: Creating Dynamic Interfaces with Rails and Ajax; 16.1 Ajax Basics; 16.2 Supporting Ajax with Rails; 16.3 Managing Enrollment through Ajax; 16.4 Moving Further into Ajax; 16.5 Test Your Knowledâ¥Chapter 17: Mail in Rails; 17.
1 Sending Text Mail; 17.2 Sending HTML Mail; 17.3 Sending Complex HTML Email; 17.4 Receiving Mail; 17.5 Test Your Knowledâ¥Chapter 18: Securing, Managing, and Deploying Your Rails Projects; 18.1 Securing Your Application; 18.2 Deploying Rails Applications; 18.3 Test Your Knowledâ¥Chapter 19: Making the Most of Rails--And Beyond; 19.
1 Keep Up with Rails; 19.2 Plug-ins; 19.3 Ruby; 19.4 Web Services; 19.5 Explore Other Ruby Frameworks; 19.6 Migrating Legacy Applications to Rails; 19.7 Keep Exploring;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;An Incredibly Brief Introduction to Relational Databases; Tables of Data; Databases, Tables, and Rails;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;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;Glossary; Speaking in Rails;Colophon;.