Copyright

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       

For sales outside the United States please contact:

       International Sales       

Visit us on the Web: www.awprofessional.com

Library of Congress Cataloging-in-Publication Data:

Fernandez, Obie.   The Rails way / Obie Fernandez.     p. cm.   Includes index.   ISBN 0-321-44561-9 (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 softare--Development. I. Title.    QA76.64F47 2007   005.1'17--dc22                                              2007039880

Copyright © 2008 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

This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later (the latest version is presently available at http://www.opencontent.org/openpub/).

ISBN-13: 978-0-321-44561-9

Text printed in the United States on recycled paper at R.R. Donnelly in Crawfordsville, IN.

Third printing March 2008

Parts of this book contain material excerpted from the Ruby and Rails source code and API documentation, Copyright © 2004-2006 by David Heinemeier Hansson under the MIT license. Chapter 18 contains material excerpted from the RSpec source code and API documentation, Copyright © 2005-2007 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.

Associate PublisherMark TaubAcquisitions EditorDebra Williams CauleyDevelopment EditorSonglin QiuManaging EditorPatrick KanouseSenior Project EditorSan Dee PhillipsIndexerTim WrightPublishing CoordinatorCindy TeetersBook DesignerChuti PrasertsithCompositionMark ShirarCopy EditorMargaret BersonProofreaderKathy RuizTechnical ReviewerFrancis HwangSebastian DelmontWilson BilkovichCourtenay GaskingSam AaronNola StoweSusan PotterJon Larkowski

 

Dedication

To Desi, my love, my companion, my muse.

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

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