The Art of Rails®
Any programmer knows that an API is only half the story, andwith Ruby on Rails® this is especially true. Good Railsdevelopment, like good web development, is much more about thedesign choices you make than the framework you have at yourdisposal. Written by an experienced web application developer, thisbook picks up where the API leaves off and explains how to takegood Rails code and turn it into beautiful Rails code: simple,effective, reusable, evolvable code.
In a blend of design and programming, this book identifies anddescribes the very latest in design patterns, programmingabstractions, and development methodologies that have emerged forthe modern web. Ruby on Rails offers a completely new way ofthinking about and using these emerging techniques, and learning tothink like a Rails developer will enable you to rapidly design andwrite high-quality code with elegance and maintainability. Witheach design technique, you will discover how Rails incorporates itinto its domain-specific language, and you will learn how to weaveit seamlessly into your own Rails applications. Then you will learnhow to take the next step and transform yourself from user intocreator, making your own additions to Rails and crafting adevelopment environment tailored to your specific needs.
What you will learn from this book
Techniques for organizing your code between and within Model,View, and Controller to eliminate code repetition and maximize youreffectiveness
How to think like a REST-based developer and use Rails 2.0 totranslate these thoughts into your code
Advanced Ruby and meta-programming: how to use features such asblock-based development, monkey patching, and dynamic APIs to buildyour own additions to the Rails framework
Design patterns for AJAX, web APIs, HTML decomposition, schemadevelopment, meta-programming, and more
Behavior-driven development: A new style of testing anddevelopment centered around stories and behaviors instead of methodcalls and assertions
Ways to make your development both productive and fun in thesoftware you write
Who this book is for
This book is for developers familiar with Ruby on Rails who arelooking to advance their skills by learning the design and codingtechniques that enable a mastery of web application developmentwith Rails.
Wrox guides are crafted to make learning programming languagesand technologies easier than you think. Written by programmers forprogrammers, they provide a structured, tutorial format that willguide you through all the techniques involved.