Beta
Book
Agile publishing for agile developers
Under Construction The book you’re reading is still under development. As
Part of our Beta book program, we’re releasing this copy well before a normal
Book would be released. That way you’re able to get this content a couple of
Months before it’s available in finished form, and we’ll get feedback to make
The book even better. The idea is that everyone wins!
Be warned. The book has not had a full technical edit, so it will contain
Errors. It has not been copyedited, so it will be full of typos and other weirdness.
And there’s been no effort spent doing layout, so you’ll find bad page
Breaks, over-long lines with little black rectangles, incorrect hyphenations,
And all the other ugly things that you wouldn’t expect to see in a finished
Book. We can’t be held liable if you use this book to try to create a spiffy
Application and you somehow end up with a strangely shaped farm implement
Instead. Despite all this, we think you’ll enjoy it!
Download Updates Throughout this process you’ll be able to download
Updated ebooks from your account on http://pragprog. com. When the book
Is finally ready, you’ll get the final version (and subsequent updates) from the
Same address.
Send us your feedback In the meantime, we’d appreciate you sending us
Your feedback on this book at http://pragprog. com/titles/rails4/errata, or by using
The links at the bottom of each page.
Thank you for being part of the Pragmatic community!
Andy & Dave
Prepared exclusively for Anton Fonarev
Agile Web Development with Rails
Fourth Edition
Sam Ruby
Dave Thomas
David Heinemeier Hansson
With Leon Breedt
Mike Clark
James Duncan Davidson
Justin Gehtland
Andreas Schwarz
/>
The Pragmatic Bookshelf
Raleigh, North Carolina Dallas, Texas
Prepared exclusively for Anton Fonarev
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, The Pragmatic Programmer, Pragmatic Programming,
Pragmatic Bookshelf and the linking g device are trademarks of The Pragmatic Programmers,
LLC.
Every precaution was taken in the preparation of this book. However, the publisher assumes no
Responsibility 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 well as the latest Pragmatic titles, please
No part of this publication 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-54-9
ISBN-13: 978-1-934356-54-8
Printed on acid-free paper.
B13.0 printing, February 2, 2011
Version: 2011-2-2
Prepared exclusively for Anton Fonarev
Contents
Changes in the Beta Releases 10
Beta 13 – February 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Beta 12 – January 10 . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Beta 11 – November 24 . . . . . . . . . .