tailieunhanh - Crafting Rails Applications

Rails Core developer Jose Valim guides you through seven different tutorials, each of them using test-driven development to build a new Rails extension or application that solves common problems with these new APIs. You will understand how the Rails rendering stack works and customize it to read templates from the database while you learn how to mimic Active Record behavior, like validations, in any other object. | Crafting Rails Applications Expert Practices for Everyday Rails Development José Valim The Pragmatic Bookshelf Raleigh North Carolina Dallas Texas j Pragmatic _ Bookshelf Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book and The Pragmatic Programmers LLC was aware of a trademark claim the designations have been printed in initial capital letters or in all capitals. The Pragmatic starter Kit. rhe Pragmatic Programmer Pragmatic Programming Pragmatic Bookshelf and the Unking g device are trademarks of The Pragmatic Programmers LLC. Every precaution was taken in the preparation of this book. However the pubUsher assumes no responsibiUty for errors or omissions or for damages that may result from the use of information Including program listings contained herein. Our Pragmatic courses workshops and other products can help you and your team create better software and have more fun. For more Information as weU as the latest Pragmatic titles please visit US at http . The team that produced this book Includes Editor Brian p. Hogan Indexing Potomac Indexing LLC Copy edit Kim Wlmpsett Production Janet Furlow Customer support Ellie Callahan International JuUet Benda Copyright 2011 Pragmatic Programmers LLC. All rights reserved. No part of this pubheation may be reproduced stored in a retrieval system or transmitted in any form or by any means electronic mechanical photocopying recording or otherwise without the prior consent of the publisher. Printed in the United States of America. ISBN-10 1-934356-73-5 ISBN-13 978-1-934356-73-9 Printed on acid-free paper. printing March 2011 Version 2011-3-31 Contents Acknowledgments 7 Preface 8 Who Should Read This Book . 8 What Is in the Book . 9 How to Read This Book. 11 Online Resources. 11 1 Creating Our Own Renderer 12 Generating Projects with .