出版社: Addison-Wesley Professional
副标题: Learn Web Development with Rails
出版年: 2012-8-6
页数: 600
定价: USD 44.99
装帧: Paperback
ISBN: 9780321832054
内容简介 · · · · · ·
"Ruby on Rails(TM) Tutorial by Michael Hartl has become a must-read for developers learning how to build Rails apps." -Peter Cooper, Editor of Ruby Inside Using Rails, developers can build web applications of exceptional elegance and power. Although its remarkable capabilities have made Ruby on Rails one of the world's most popular web development frameworks, it can be challeng...
"Ruby on Rails(TM) Tutorial by Michael Hartl has become a must-read for developers learning how to build Rails apps." -Peter Cooper, Editor of Ruby Inside Using Rails, developers can build web applications of exceptional elegance and power. Although its remarkable capabilities have made Ruby on Rails one of the world's most popular web development frameworks, it can be challenging to learn and use. Ruby on Rails(TM) Tutorial, Second Edition, is the solution. Best-selling author and leading Rails developer Michael Hartl teaches Rails by guiding you through the development of your own complete sample application using the latest techniques in Rails web development. The updates to this edition include all-new site design using Twitter's Bootstrap; coverage of the new asset pipeline, including Sprockets and Sass; behavior-driven development (BDD) with Capybara and RSpec; better automated testing with Guard and Spork; roll your own authentication with has_secure_password; and an introduction to Gherkin and Cucumber. You'll find integrated tutorials not only for Rails, but also for the essential Ruby, HTML, CSS, JavaScript, and SQL skills you'll need when developing web applications. Hartl explains how each new technique solves a real-world problem, and he demonstrates this with bite-sized code that's simple enough to understand, yet novel enough to be useful. Whatever your previous web development experience, this book will guide you to true Rails mastery. This book will help you * Install and set up your Rails development environment * Go beyond generated code to truly understand how to build Rails applications from scratch * Learn test-driven development (TDD) with RSpec * Effectively use the Model-View-Controller (MVC) pattern * Structure applications using the REST architecture * Build static pages and transform them into dynamic ones * Master the Ruby programming skills all Rails developers need * Define high-quality site layouts and data models * Implement registration and authentication systems, including validation and secure passwords * Update, display, and delete users * Add social features and microblogging, including an introduction to Ajax * Record version changes with Git and share code at GitHub * Simplify application deployment with Heroku
作者简介 · · · · · ·
Ruby on Rails Tutorial creator Michael Hartl is a programmer, educator, and entrepreneur. Michael was coauthor of RailsSpace, a Rails tutorial book published in 2007, and was cofounder and lead developer of Insoshi, a popular social networking platform in Ruby on Rails. Previously, he taught theoretical and computational physics at the California Institute of Technology (Caltec...
Ruby on Rails Tutorial creator Michael Hartl is a programmer, educator, and entrepreneur. Michael was coauthor of RailsSpace, a Rails tutorial book published in 2007, and was cofounder and lead developer of Insoshi, a popular social networking platform in Ruby on Rails. Previously, he taught theoretical and computational physics at the California Institute of Technology (Caltech), where he received the Lifetime Achievement Award for Excellence in Teaching. Michael is a graduate of Harvard College, has a Ph.D. in Physics from Caltech, and is an alumnus of the Y Combinator entrepreneur program.
目录 · · · · · ·
Foreword to the First Edition by Obie Fernandez xvii
Acknowledgments xix
About the Author xxi
Chapter 1: From Zero to Deploy 1
· · · · · · (更多)
Foreword to the First Edition by Obie Fernandez xvii
Acknowledgments xix
About the Author xxi
Chapter 1: From Zero to Deploy 1
1.1 Introduction 3
1.2 Up and Running 9
1.3 Version Control with Git 27
1.4 Deploying 39
1.5 Conclusion 43
Chapter 2: A Demo App 45
2.1 Planning the Application 45
2.2 The Users Resource 49
2.3 The Microposts Resource 63
2.4 Conclusion 74
Chapter 3: Mostly Static Pages 77
3.1 Static Pages 82
3.2 Our First Tests 93
3.3 Slightly Dynamic Pages 103
3.4 Conclusion 114
3.5 Exercises 114
3.6 Advanced Setup 117
Chapter 4: Rails-Flavored Ruby 129
4.1 Motivation 129
4.2 Strings and Methods 134
4.3 Other Data Structures 142
4.4 Ruby Classes 153
4.5 Conclusion 164
4.6 Exercises 164
Chapter 5: Filling in the Layout 167
5.1 Adding Some Structure 167
5.2 Sass and the Asset Pipeline 187
5.3 Layout Links 197
5.4 User Signup: A First Step 211
5.5 Conclusion 215
5.6 Exercises 217
Chapter 6: Modeling Users 221
6.1 User Model 222
6.2 User Validations 236
6.3 Adding a Secure Password 254
6.4 Conclusion 267
6.5 Exercises 268
Chapter 7: Sign Up 271
7.1 Showing Users 271
7.2 Signup Form 292
7.3 Signup Failure 303
7.4 Signup Success 312
7.5 Conclusion 321
7.6 Exercises 321
Chapter 8: Sign In, Sign Out 325
8.1 Sessions and Signin Failure 325
8.2 Signin Success 343
8.3 Introduction to Cucumber (Optional) 363
8.4 Conclusion 371
8.5 Exercises 372
Chapter 9: Updating, Showing, and Deleting Users 373
9.1 Updating Users 373
9.2 Authorization 385
9.3 Showing All Users 396
9.4 Deleting Users 413
9.5 Conclusion 422
9.6 Exercises 424
Chapter 10: User Microposts 429
10.1 A Micropost Model 429
10.2 Showing Microposts 445
10.3 Manipulating Microposts 454
10.4 Conclusion 479
10.5 Exercises 480
Chapter 11: Following Users 483
11.1 The Relationship Model 484
11.2 A Web Interface for Following Users 503
11.3 The Status Feed 529
11.4 Conclusion 539
11.5 Exercises 543
· · · · · · (收起)
喜欢读"Ruby on Rails Tutorial"的人也喜欢的电子书 · · · · · ·
喜欢读"Ruby on Rails Tutorial"的人也喜欢 · · · · · ·
Ruby on Rails Tutorial的书评 · · · · · · ( 全部 4 条 )
Rails入门,第一推荐!
> 更多书评 4篇
论坛 · · · · · ·
Ruby on Rails Tutorial 中文翻译 | 来自安道 | 2 回应 | 2013-03-22 09:40:52 |
这本书的其他版本 · · · · · · ( 全部4 )
-
Addison-Wesley Professional (2010)9.4分 133人读过
-
Addison-Wesley Professional (2016)暂无评分 9人读过
-
Addison-Wesley Professional (2015)暂无评分 4人读过
以下书单推荐 · · · · · · ( 全部 )
- Full Stack Web Developer (小镇)
- <阅读> 编程之路 (Cruz)
- Ruby是个好名字 (薛定諤的藍貓)
- Some good books about ruby (lostleaf)
- 书单 | Non-Fiction 9.0+ (Sheryl)
谁读这本书? · · · · · ·
二手市场
· · · · · ·
- 在豆瓣转让 有140人想读,手里有一本闲着?
订阅关于Ruby on Rails Tutorial的评论:
feed: rss 2.0
0 有用 斩不断的风 2015-06-26 15:35:08
tdd啊bdd
0 有用 isay 2015-04-15 15:30:39
非常好的教程,值得反复读
0 有用 greylancer 2016-01-11 13:35:12
入门首选
0 有用 风中散发 2015-05-28 19:08:51
有点琐碎 不过不错
0 有用 啥也不懂 2012-07-17 17:12:52
2012-07-17, 2012-07-09, 26.5
0 有用 人品人品快到碗 2021-09-18 11:31:09
跟着里面一步一步做还是很有帮助的
0 有用 Thanks Sir Alex 2018-01-09 23:30:26
很简单的入门书,但是很多知识点都是一行代码直接给出来,如果不研读api文档和rails官方指南有点难理解
0 有用 KevinYuan 2017-04-24 14:18:24
本来以为只是一本rails的好书 读完以后 对于TDD也有了新的认识 国外的书籍确实质量过硬 收获很大
0 有用 Cosmo 2016-11-18 20:45:43
刷了一遍。不错。TDD第一次接触。
1 有用 jeff 2016-10-11 00:16:42
很不错的书,详细、扎实,TDD的使用很精彩