Book description
Ruby on Rails offers the ability to rapidly design and write high-quality code with elegance and maintainability. Written by an experienced web application developer, this book explains how to take good Rails code and turn it into beautiful Rails code: simple, effective, reusable, evolvable code. He discusses the very latest in design patterns, programming abstractions, and development methodologies that have emerged for the modern web. With each design technique, you?ll discover how to make your own additions to Rails and craft a development environment tailored to your specific needs.
Table of contents
- Copyright
- About the Author
- Credits
- Acknowledgments
- Introduction
- 1. Emergence(y) of the New Web
-
2. The Rails Concept
- 2.1. One Part Framework
- 2.2. One Part Language
-
2.3. Two Parts Mindset
- 2.3.1. Web Sites Are MVC Applications
- 2.3.2. Web Applications Are Ecosystems
- 2.3.3. Convention over Configuration
- 2.3.4. A Little Assumption Goes a Long Way
- 2.3.5. Aesthetics Matter
- 2.3.6. Restraint Can Be Liberating
- 2.3.7. You Repeat Yourself Too Much
- 2.3.8. Testing Isn't a Choice
- 2.3.9. The Web Is a Set of Resources, Not Services
- 2.4. Summary
- 3. The Server as an Application
-
4. Getting the Most from M, V, and C
- 4.1. The Best API Documentation Is Free
- 4.2. The Model
- 4.3. The View
- 4.4. The Controller
- 4.5. Summary
- 5. Beautiful Web APIs
-
6. Resources and REST
- 6.1. A Web of Resources
- 6.2. Representational State Transfer
- 6.3. REST and Rails
- 6.4. Summary
- 7. The Five Styles of AJAX
- 8. Playing with Blocks
- 9. Mixins and Monkey Patching
-
10. Code That Writes Code (That Writes Code)
- 10.1. Dynamic Code and DSLs Revisited
- 10.2. Code-Writing Macros
- 10.3. Calling Methods That Don't Exist: Objects That Adapt to the Way You Use Them
- 10.4. Reflection
- 10.5. Summary
-
11. How I Learned to Stop Worrying and Love the Schema
- 11.1. Bringing the Database into the Picture: The LAMP Stack
- 11.2. Thinking in Migrations
- 11.3. Team Schema Development
- 11.4. Seeding Data for Production
- 11.5. When a Database Isn't Enough
- 11.6. Summary
- 12. Behavior-Driven Development and RSpec
Product information
- Title: The Art of Rails®
- Author(s):
- Release date: May 2008
- Publisher(s): Wrox
- ISBN: 9780470189481
You might also like
audiobook
Transformed
Help transform your business and innovate like the world's top tech companies! Transformed: Moving to the …
book
The Rails Way
The expert guide to building Ruby on Rails applications Ruby on Rails strips complexity from the …
video
How to Ask for What You Want
4 tips for getting your colleagues' attention.
book
The Ruby Workshop
Cut through the noise and get real results with a step-by-step approach to learning Ruby programming. …