没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Prepared exclusively for Jared Rosoff
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 t his 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 weird-
ness. 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 creat e a spiffy
application and you somehow end up with a strangely shaped farm imple-
ment 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 Jared Rosoff
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 Jared Rosoff
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 Program-
mers, 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 Program-
ming, 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 resu lt from the use of information
(including program listings) contained herein.
Our Pragmatic courses, w orksho ps, and o ther products can help you and your team create better
software and have more fun. For more information, as well as the latest P ragmatic titles, please
visit us at
http://www.pragprog.com.
Copyright
©
2010 The Pragmatic Programmers LLC.
All rights reserved.
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.
B8.0 printing, September 9, 2010
Version: 2010-9-9
Prepared exclusively for Jared Rosoff
Contents
Changes in the Beta Releases 11
Beta 8—September 9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Beta 7—August 25 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Beta 6—July 27 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Beta 5—June 28 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Beta 4—May 26 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Beta 3—May 11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Beta 2—May 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Preface to the Fourth Edition 15
Acknowledgements 17
Introduction 19
Rails Simply Feels Right . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Rails Is Agile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Who This Book Is For . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
How To Read This Book . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Part I—Getting Started 27
1 Installing Rails 29
1.1 Installing on Windows . . . . . . . . . . . . . . . . . . . . . . . . 29
1.2 Installing on Mac OS X . . . . . . . . . . . . . . . . . . . . . . . 31
1.3 Installing on Linux . . . . . . . . . . . . . . . . . . . . . . . . . . 32
1.4 Choosing a Rails Version . . . . . . . . . . . . . . . . . . . . . . 33
1.5 Setting Up Your Development Environment . . . . . . . . . . . 34
1.6 Rails and Databases . . . . . . . . . . . . . . . . . . . . . . . . . 38
1.7 What We Just Did . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Prepared exclusively for Jared Rosoff
剩余472页未读,继续阅读
资源评论
hssg44
- 粉丝: 1
- 资源: 17
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功