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 publisher was aware of a trademark claim, the designations have been printed with initial capital letters or in all capitals.

The author and publisher have taken care in the preparation of this book, but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for incidental or consequential damages in connection with or arising out of the use of the information or programs contained herein.

The publisher offers excellent discounts on this book when ordered in quantity for bulk purchases or special sales, which may include electronic versions and/or custom covers and content particular to your business, training goals, marketing focus, and branding interests. For more information, please contact:

     U.S. Corporate and Government Sales
     (800) 382-3419
     [email protected]

For sales outside the United States please contact:

     International Sales
     [email protected]

Visit us on the Web: informit.com/aw

Library of Congress Cataloging-in-Publication Data

Fernandez, Obie.
   The rails 3 way / Obie Fernandez.
     p. cm.
   Rev. ed. of: The Rails way / Obie Fernandez. 2008.
   Includes index.
   ISBN 0-321-60166-1 (pbk. : alk. paper)
   1. Ruby on rails (Electronic resource) 2. Object-oriented programming (Computer science)
   3. Ruby (Computer program language) 4. Web site development. 5. Application
   software–Development. I. Fernandez, Obie. Rails way. II. Title.
   QA76.64.F47 2010
   005.1'17–dc22
                                                                            2010038744

Copyright © 2011 Pearson Education, Inc.

All rights reserved. Printed in the United States of America. This publication is protected by copyright, and permission must be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or likewise. For information regarding permissions, write to:

     Pearson Education, Inc.
     Rights and Contracts Department
     501 Boylston Street, Suite 900
     Boston, MA 02116
     Fax: (617) 671-3447

Parts of this book contain material excerpted from the Ruby and Rails source code and API documentation, Copyright © 2004–2011 by David Heinemeier Hansson under the MIT license. Chapter 18 contains material excerpted from the RSpec source code and API documentation, Copyright © 2005-2011 The RSpec Development Team.

The MIT License reads: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS,” WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OF OR OTHER DEALINGS IN THE SOFTWARE.

ISBN-13: 978-0-321-60166-7

ISBN-10:   0-321-60166-1

Text printed in the United States on recycled paper at Edwards Brothers in Ann Arbor, Michigan.

Second printing, May 2011

Editor-in-Chief
Mark Taub
Executive Acquisitions Editor
Debra Williams Cauley
Managing Editor
John Fuller
Project Editor
Elizabeth Ryan
Copy Editor
Carol Loomis
Indexer
Valerie Haynes Perry
Proofreader
Erica Orloff
Publishing Coordinator
Kim Boedigheimer
Cover Designer
Chuti Prasertsith
Compositor
Glyph International

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.224.54.168