HTML Site Map Homepage Last updated: 2014, December 30 / 250 pages Index SYMBOL A B C D E G H I J K L N O P Q R S U V W X Y Z Colophon Generating XML with Builder Templates Hosting Rails with Apache 2.2, mod_proxy_balancer, and Mongrel Generating RDoc for Your Rails Application Formatting Dates, Times, and Currencies Understanding Pluralization Patterns in Rails Getting Your Rails Project into Subversion Verifying DOM Structure with Tag-Related Assertions Configuring Rails to Send Email Retrieving Records with find - 5.0. Introduction Including Dynamic Data in Fixtures with ERb Avoiding Harmful Code in Views with Liquid Templates Iterating Over an Active Record Result Set Emailing Application Exceptions Accessing Form Data from a Controller Index Protecting Against Race Conditions with Transactions - 6.0. Introduction Filtering Cached Pages with Action Caching - 4.0. Introduction Using Filters for Authentication Changing an Application's Default Page Sending Files or Data Streams to the Browser Inspecting Requests with Filters Logging with Filters Displaying Alert Messages with Flash Extending the Life of a Flash Message Generating URLs Dynamically Clarifying Your Code with Named Routes Following Actions with Redirects Rendering Actions Restricting Access to Controller Methods Storing Session Information in a Database Tracking Information with Sessions - 9.0. Introduction Attaching Files to Email Messages Creating a Custom Mailer Class with the Mailer Generator Formatting Email Messages Using Templates Receiving Email with Action Mailer Sending Email from a Rails Application Defining a Default Application Layout Factoring Out Common Display Code with Layouts Creating a Web Form with Form Helpers Globalizing Your Rails Application Processing Dynamically Created Input Fields Reusing Page Elements with Partials Displaying Large Datasets with Pagination Generating RSS Feeds from Active Record Data Creating a Sticky Select List Editing Many-to-Many Relationships with Multiselect Lists Simplifying Templates with View Helpers Customizing the Behavior of Standard Helpers Jump-Starting Development with Scaffolding - 3.0. Introduction Accessing Your Data via Active Record Extending Active Record with acts_as Enforcing Data Integrity with Active Record Validations Handling Tables with Legacy Naming Conventions Developing Your Database with Migrations Performing a Task Whenever a Model Object Is Created Modeling a Database with Active Record Cleaning Up Residual Session Records Initializing a Test Database Unit Testing Model Validations Updating an Active Record Object Avoiding Race Conditions with Optimistic Locking Uploading Files with acts_as_attachment Building Authentication with acts_as_authenticated Adding Sort Capabilities to a Model with acts_as_list Modeling a Threaded Forum with acts_as_nested_set Disabling Records Instead of Deleting Them with acts_as_paranoid Simplifying Folksonomy with the acts_as_taggable Creating a Directory of Nested Topics with acts_as_tree Manipulating Record Versions with acts_as_versioned Hosting Rails Using Apache 1.3 and mod_fastcgi Installing Rails - 8.0. Introduction Developing Your Rails Applications RESTfully - 13.0. Introduction Deploying Your Rails Project with Capistrano Creating a Rails Project - 7.0. Introduction Importing Test Data with CSV Fixtures Writing Custom Assertions Testing File Upload Testing Controllers with Functional Tests Testing Across Controllers with Integration Tests Creating Fixtures for Many-to-Many Associations Interactively Testing Controllers from the Rails Console Monitoring Test Coverage with rake stats Running Tests with Rake Interpreting the Output of Test::Unit Speeding Up Tests with Transactional Fixtures Testing a Model with Unit Tests Loading Test Data with YAML Fixtures Creating Small, Informative Graphs with Sparklines Factoring Out Common Relationships with Polymorphic Associations Testing HTTP Requests with Response-Related Assertions Action Controller Active Record Adding More Elaborate Authentication Using the Login Engine Setting Up Passwordless Authentication with SSH Automating Record Timestamping Personalizing User Profiles with Gravatars Benchmarking Portions of Your Application Code Protecting Queries from SQL Injection Uploading Images to a Database Debugging Your Application in Real Time with the breakpointer Debugging Your Code Interactively with ruby-debug Speeding Up Rails Development with Mongrel Developing Rails in OS X with TextMate Finding Documentation Expiring Cached Pages Improving Performance by Caching Static Pages Mixing Static and Dynamic Content with Fragment Caching - 12.0. Introduction Disabling Your Web Site During Maintenance Writing Custom Capistrano Tasks Deploying with Capistrano and mongrel_cluster Deploying Your Application to Multiple Environments with Capistrano Deploying with Capistrano When You Can't Access Subversion Running Rails in Windows with Instant Rails Examining the Contents of Cookie Modeling Relationships RESTfully with Join Models Managing Multiple Mongrel Processes with mongrel_cluster Consuming Complex Nested REST Resources Joining the Rails Community Inspecting Model Relationships from the Rails Console Moving Beyond Simple CRUD with RESTful Resources - 1.0. Introduction Customizing Pound's Logging with cronolog Cross-Platform Developing with RadRails - 11.0. Introduction Guarding Against Cross-Site Scripting Attacks Creating Full-Featured CRUD Applications with Streamlined Supporting Alternative Data Formats by MIME Type Executing Custom Queries with find_by_sql Testing Custom and Named Routes Configuring Customized Routing Behavior Fixing Bugs at the Source with Ruby -cw Enhancing Windows Development with Cygwin Speeding Up Data Access Times with memcached Installing MySQL Installing PostgreSQL Programmatically Defining Database Schema Serving Images Directly from a Database Setting Up a Relational Database to Use with Rails Deploying Rails with Pound in Front of Mongrel, Lighttpd, and Apache - 10.0. Introduction Filtering Development Logs in Real Time Debugging HTTP Communication with Firefox Extensions Debugging Your JavaScript in Real Time with the JavaScript Shell Logging with the Built-in Rails Logger Class Displaying Object Contents with Exceptions Exploring Rails from the Console Writing Debugging Information to a File - 2.0. Introduction Hardening Your Systems with Strong Passwords Finding Third-Party Plug-ins Retrieving Data Efficiently with Eager Loading Installing and Running Edge Rails - 14.0. Introduction F M T Fixing Ruby and Installing Rails on OS X 10.4 Tiger Updating Rails with RubyGems - 15.0. Introduction Installing RMagick for Image Processing Creating Resized Thumbnails with RMagick Visually Displaying Data with Gruff Measuring Web Server Performance with Httperf Installing Plug-ins Mixing Join Models and Polymorphism for Flexible Data Modeling Securing Your Server by Closing Unnecessary Ports Simple Load Balancing with Pen Running Rails in OS X with Locomotive Creating Nested Resources Generating PDF Documents Increasing Performance by Caching Post-Processed Content Adding View Helpers to Rails as Plug-ins Configuring Pound with SSL Support Restricting Access to Public Methods or Actions Appendix A. Migrating to Rails 1.2 Analyzing Code Coverage with Rcov Uploading Files with file_column Centralizing the Creation of Objects Common to Test Cases Action View Rails Development Action Mailer JavaScript and Ajax Action View Outputting Environment Information in Views RESTful Development Action Controller Debugging Rails Applications Active Record Extending Rails with Plug-ins Adding DOM Elements to a Page Rails Application Testing Hosting and Deployment Modifying the Default Behavior of a Class for Testing by Using Mocks Graphics Security Performance Getting Started Improving Feedback by Running Tests Continuously Creating an Ajax Progress Indicator Creating a Custom Report with Drag and Drop Dynamically Adding Items to a Select List Monitoring the Content Length of a Textarea Updating Page Elements with RJS Templates Inserting JavaScript into Templates Letting a User Reorder a List Autocompleting a Text Field Searching for and Highlighting Text Dynamically Enhancing the User Interface with Visual Effects Implementing a Live Search Editing Fields in Place with Rails Foreword Copyright Table of Contents Rails Cookbook