1.

Record Nr.

UNINA9910458636303321

Autore

Benson Edward <1983->

Titolo

The art of Rails [[electronic resource] /] / Edward Benson

Pubbl/distr/stampa

Indianapolis, IN, : Wiley Pub., c2008

ISBN

1-281-37453-9

9786611374532

0-470-38607-X

Descrizione fisica

1 online resource (338 p.)

Collana

Wrox guides

Disciplina

005.1/17

Soggetti

Ruby (Computer program language)

Web site development

Electronic books.

Lingua di pubblicazione

Inglese

Formato

Materiale a stampa

Livello bibliografico

Monografia

Note generali

Includes index.

Nota di contenuto

The Art of Rails; About the Author; Credits; Acknowledgments; Contents; Introduction; What Is the Art of Rails?; Whom This Book Is For; What's Up With the Stories?; Conventions; Source Code; Errata; p2p.wrox.com; Chapter 1: Emergence(y) of the New Web; Rails, Art, and the New Web; Patient History: The World Wide Web; Emergence of the New Web; Chapter 2: The Rails Concept; One Part Framework; One Part Language; Two Parts Mindset; Summary; Chapter 3: The Server as an Application; Model-View-Controller: The Abbreviated Version; MVC and the Web; The MVC Design Process

Managing the Application Lifecycle Summary; Chapter 4: Getting the Most from M, V, and C; The Best API Documentation Is Free; The Model; The View; The Controller; Summary; Chapter 5: Beautiful Web APIs; Two Big Ideas for Web APIs; Routing; Anatomy of the Web API Call; Overlaying the API; Adding Custom MIME Types; API-Metering, the Rails Way; What about SOAP/XML-RPC Services?; Summary; Chapter 6: Resources and REST; A Web of Resources; Representational State Transfer; REST and Rails; Summary; Chapter 7: The Five Styles of AJAX; The Big Secrets; The Five Styles of AJAX; AJAX as Just Another API

Rails-Style AJAX Elegant Degradation; Summary; Chapter 8: Playing with Blocks; The Block Mindset; Comparing Methods, Procs, and Blocks; The



Big Scope Experiment; Block Patterns, Blocks in Rails; Summary; Chapter 9: Mixins and Monkey Patching; Mixins; Monkey Patching; Summary; Chapter 10: Code That Writes Code (That Writes Code); Dynamic Code and DSLs Revisited; Code-Writing Macros; Calling Methods That Don't Exist: Objects That Adapt to the Way You Use Them; Reflection; Summary; Chapter 11: How I Learned to Stop Worrying and Love the Schema

Bringing the Database into the Picture: The LAMP Stack Thinking in Migrations; Team Schema Development; Seeding Data for Production; When a Database Isn't Enough; Summary; Chapter 12: Behavior-Driven Development and RSpec; Behavior-Driven Development; RSpec: BDD for Ruby and Rails; An Example Trip through the Development Cycle; But Wait, There's More; Summary; Index

Sommario/riassunto

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.