Professional Ruby on Rails™

Book description

Nothing less than a revolution in the way web applications are constructed,Ruby on Rails (RoR) boasts a straightforward and intuitive nature that avoids programming repetition and makes it infinitely easier to build for the web. This book captures the current best practices to show you the most efficient way to build a spectacular web application with RoR. You?ll learn everything you need to know in order to extend Rails so that you can take advantage of the many exciting and wonderful things that are being done by the diligent RoR programming community.

Table of contents

  1. Copyright
  2. Dedication
  3. About The Author
  4. Credits
  5. Acknowledgments
  6. Introduction
  7. Building Resources
    1. A Good Place to Start
    2. A Recipe for Recipes
    3. The REST of the Story
    4. Building Your First Resources
    5. Building Ingredients
    6. Building a Recipe Editor
    7. Resources
    8. Summary
  8. Rails Source Control With Subversion
    1. Subversive Control
    2. Creating a Repository
    3. Populating the New Repository
    4. The Repository Life Cycle
    5. Setting Up a Subversion Server with svnserve
    6. Living on the Edge
    7. What's Up, RDoc?
    8. Resources
    9. Summary
  9. Adding Users
    1. Creating Users
    2. User Creation Form
    3. Refactoring Forms Using A FormBuilder
    4. Storing Encrypted Passwords
    5. Authentication
    6. Bot Protection via Authorization Email
    7. CAPTCHA
    8. Sessions and Cookies
    9. Resources
    10. Summary
  10. Build Tools and Automation
    1. What Rake Can Do for You
    2. What You Can Do for Rake
    3. Continuous Integration
    4. Resources
    5. Summary
  11. Navigation and Social Networking
    1. Menus and Sidebars
    2. Tagging
    3. Searching
    4. Pagination
    5. Resources
    6. Summary
  12. The Care and Feeding of Databases
    1. Plugging In to Your Legacy
    2. Naming Unconventionally
    3. Testing a Legacy Database with Fixtures
    4. Building a Relationship across Multiple Databases
    5. Why Be Normal?
    6. Polymorphic Associations
    7. Database Refresher
    8. Using Transactions
    9. Resources
    10. Summary
  13. Testing Tools
    1. Test Driven
    2. Covering It All
    3. Mock Testing
    4. Behavior-Driven Design
    5. How to Get RSpec-Like Features
    6. References
    7. Summary
  14. Rails-Driven Javascript
    1. Revisiting the Past
    2. Easy JavaScript Integration
    3. Writing JavaScript in Ruby
    4. Cross-Site Scripting Security
    5. Resources
    6. Summary
  15. Talking to the Web
    1. ActiveResource
    2. Producing Web Service Data
    3. Consuming Web Services
    4. Resources
    5. Summary
  16. Internationalizing Your Application
    1. Does Anybody Really Care About Time?
    2. Internationalization with Globalize
    3. References
    4. Summary
  17. The Graphic Arts
    1. Getting Started
    2. Uploading Files to Rails
    3. Using Your Graphics Library
    4. Charts
    5. Resources
    6. Summary
  18. Deploying Your Application
    1. Capistrano
    2. Mongrel
    3. References
    4. Summary
  19. Performance
    1. Measurement
    2. Fixing Performance Problems
    3. Caching
    4. References
    5. Summary
  20. Going Meta
    1. Eval and Bindings
    2. Introspection Tools
    3. Classes, Metaclasses, and Singletons
    4. Monkey Patching and Duck Punching
    5. The Case of the Missing Method
    6. Defining Methods Dynamically
    7. References
    8. Summary
  21. Extending Rails With Plugins
    1. Using Plugins
    2. Creating a Plugin
    3. Writing a Generator
    4. Writing the Plugin
    5. Distributing Plugins
    6. References
    7. Summary
  22. Replacing Ruby Tools
    1. ERB Replacements
    2. JRuby on JRails
    3. References
    4. Summary
  23. Things You Should Download
    1. Platform Notes
    2. Ruby
    3. Rails
    4. Subversion
    5. Databases
    6. Mongrel
    7. Choosing a Text Editor
    8. One-Stop Shopping
  24. Web Frameworks Inspired By Rails
    1. CakePHP
    2. Camping
    3. Django
    4. Grails
    5. Merb
    6. TurboGears
  25. Index

Product information

  • Title: Professional Ruby on Rails™
  • Author(s): Noel Rappin
  • Release date: February 2008
  • Publisher(s): Wrox
  • ISBN: 9780470223888