Ruby on Rails Tutorial 4/e
暫譯: Ruby on Rails 教學 第4版
Michael Hartl
- 出版商: Addison Wesley
- 出版日期: 2016-11-07
- 定價: $1,650
- 售價: 6.0 折 $990
- 語言: 英文
- 頁數: 816
- 裝訂: Paperback
- ISBN: 0134598628
- ISBN-13: 9780134598628
-
相關分類:
Ruby
-
相關翻譯:
圖靈程序設計叢書:Ruby on Rails教程(第4版) (簡中版)
-
其他版本:
Ruby on Rails Tutorial 6/e
買這商品的人也買了...
-
$990$891 -
$580$452 -
$780$616 -
$360$284 -
$699$552 -
$354$336 -
$520$442 -
$720$562 -
$450$356 -
$590$502 -
$680$578 -
$580$493 -
$500$395 -
$360$180 -
$490$382 -
$580$458 -
$320$272 -
$480$379 -
$680$537 -
$780$616 -
$450$356 -
$450$356 -
$590$460 -
$390$257 -
$450$297
相關主題
商品描述
<About>
Features
A thorough introduction to web development with Ruby on Rails
By widely respected Rails expert Michael Hartl, creator of RailsSpace and the Rails-based Inoshi social networking platform
Dramatically lowers the barrier to getting started with Rails
Fully updated for Rails 5
<Description>
“Ruby on Rails™ Tutorial by Michael Hartl has become a must-read for developers learning how to build Rails apps.”
— Peter Cooper, Editor of Ruby Inside
Used by sites as varied as Twitter, GitHub, Disney, and Airbnb, Ruby on Rails is one of the most popular frameworks for developing web applications, but it can be challenging to learn and use. Whether you’re new to web development or new only to Rails, Ruby on Rails™ Tutorial, Fourth Edition, is the solution.
Best-selling author and leading Rails developer Michael Hartl teaches Rails by guiding you through the development of three example applications of increasing sophistication. The tutorial’s examples focus on the general principles of web development needed for virtually any kind of website. The updates to this edition include full compatibility with Rails 5, a division of the largest chapters into more manageable units, and a huge number of new exercises interspersed in each chapter for maximum reinforcement of the material.
This indispensable guide provides integrated tutorials not only for Rails, but also for the essential Ruby, HTML, CSS, and SQL skills you need when developing web applications. Hartl explains how each new technique solves a real-world problem, and then he demonstrates it 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, including pre-installed integrated development environment (IDE) in the cloud
Go beyond generated code to truly understand how to build Rails applications from scratch
Learn testing and test-driven development (TDD)
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
Create high-quality site layouts and data models
Implement registration and authentication systems, including validation and secure passwords
Update, display, and delete users
Upload images in production using a cloud storage service
Implement account activation and password reset, including sending email with Rails
Add social features and microblogging, including an introduction to Ajax
Record version changes with Git and create a secure remote repository at Bitbucket
Deploy your applications early and often with Heroku
<Sample Content>
Table of Contents
Foreword to the First Edition by Derek Sivers xvii
Foreword to the Third Edition by Obie Fernandez xix
Acknowledgments xxi
About the Author xxiii
Chapter 1: From Zero to Deploy 1
1.1 Introduction 4
1.2 Up and Running 10
1.3 The First Application 14
1.4 Version Control with Git 31
1.5 Deploying 45
1.6 Conclusion 51
Chapter 2: A Toy App 53
2.1 Planning the Application 54
2.2 The Users Resource 58
2.3 The Microposts Resource 74
2.4 Conclusion 89
Chapter 3: Mostly Static Pages 93
3.1 Sample App Setup 93
3.2 Static Pages 99
3.3 Getting Started with Testing 110
3.4 Slightly Dynamic Pages 118
3.5 Conclusion 134
3.6 Advanced Testing Setup 136
Chapter 4: Rails-Flavored Ruby 145
4.1 Motivation 145
4.2 Strings and Methods 150
4.3 Other Data Structures 163
4.4 Ruby Classes 177
4.5 Conclusion 190
Chapter 5: Filling in the Layout 193
5.1 Adding Some Structure 193
5.2 Sass and the Asset Pipeline 217
5.3 Layout Links 227
5.4 User Signup: A First Step 240
5.5 Conclusion 245
Chapter 6: Modeling Users 247
6.1 User Model 248
6.2 User Validations 263
6.3 Adding a Secure Password 286
6.4 Conclusion 296
Chapter 7: Sign Up 299
7.1 Showing Users 300
7.2 Signup Form 320
7.3 Unsuccessful Signups 329
7.4 Successful Signups 345
7.5 Professional-Grade Deployment 358
7.6 Conclusion 362
Chapter 8: Basic Login 365
8.1 Sessions 366
8.2 Logging In 382
8.3 Logging Out 403
8.4 Conclusion 406
Chapter 9: Advanced Login 409
9.1 Remember Me 409
9.2 “Remember Me” Checkbox 433
9.3 Remember Tests 439
9.4 Conclusion 449
Chapter 10: Updating, Showing, and Deleting Users 451
10.1 Updating Users 451
10.2 Authorization 467
10.3 Showing All Users 483
10.4 Deleting Users 500
10.5 Conclusion 512
Chapter 11: Account Activation 515
11.1 Account Activations Resource 516
11.2 Account Activation Emails 525
11.3 Activating the Account 540
11.4 Email in Production 555
11.5 Conclusion 559
Chapter 12: Password Reset 561
12.1 Password Resets Resource 563
12.2 Password Reset Emails 574
12.3 Resetting the Password 581
12.4 Email in Production (Take Two) 595
12.5 Conclusion 598
12.6 Proof of Expiration Comparison 599
Chapter 13: User Microposts 601
13.1 A Micropost Model 601
13.2 Showing Microposts 616
13.3 Manipulating Microposts 631
13.4 Micropost Images 657
13.5 Conclusion 675
Chapter 14: Following Users 679
14.1 The Relationship Model 680
14.2 A Web Interface for Following Users 698
14.3 The Status Feed 730
14.4 Conclusion 741
Index 745
商品描述(中文翻譯)
<關於>
**特色**
徹底介紹 Ruby on Rails 的網頁開發
由廣受尊敬的 Rails 專家 Michael Hartl 撰寫,他是 RailsSpace 和基於 Rails 的 Inoshi 社交網路平台的創建者
大幅降低開始使用 Rails 的門檻
完全更新至 Rails 5
<描述>
“Michael Hartl 的 Ruby on Rails™ 教程已成為開發者學習如何構建 Rails 應用程式的必讀書籍。”
— Peter Cooper, Ruby Inside 編輯
Ruby on Rails 被 Twitter、GitHub、Disney 和 Airbnb 等各種網站使用,是開發網頁應用程式最受歡迎的框架之一,但學習和使用它可能會有挑戰。無論你是網頁開發的新手還是僅對 Rails 新手,**Ruby on Rails™ 教程(第四版)**都是解決方案。
暢銷書作者及領先的 Rails 開發者 Michael Hartl 通過引導你開發三個逐步增加複雜度的範例應用程式來教授 Rails。教程中的範例專注於幾乎任何類型網站所需的網頁開發一般原則。本版的更新包括與 Rails 5 的完全相容性、將最大章節劃分為更易管理的單元,以及在每章中穿插大量新練習,以最大限度地加強材料的學習。
這本不可或缺的指南不僅提供 Rails 的綜合教程,還涵蓋了開發網頁應用程式所需的基本 Ruby、HTML、CSS 和 SQL 技能。Hartl 解釋了每個新技術如何解決現實世界的問題,然後用簡單易懂的代碼示範,這些代碼既簡單又新穎,足以實用。無論你之前的網頁開發經驗如何,這本書將引導你掌握真正的 Rails 技能。
這本書將幫助你
安裝和設置你的 Rails 開發環境,包括雲端中預安裝的整合開發環境 (IDE)
超越生成的代碼,真正理解如何從零開始構建 Rails 應用程式
學習測試和測試驅動開發 (TDD)
有效使用模型-視圖-控制器 (MVC) 模式
使用 REST 架構結構化應用程式
構建靜態頁面並將其轉換為動態頁面
掌握所有 Rails 開發者所需的 Ruby 編程技能
創建高品質的網站佈局和數據模型
實現註冊和身份驗證系統,包括驗證和安全密碼
更新、顯示和刪除用戶
使用雲存儲服務在生產環境中上傳圖片
實現帳戶激活和密碼重置,包括使用 Rails 發送電子郵件
添加社交功能和微博,包括 Ajax 的介紹
使用 Git 記錄版本變更並在 Bitbucket 創建安全的遠端儲存庫
使用 Heroku 早期和頻繁地部署你的應用程式
<範例內容>
**目錄**
第一版前言 由 Derek Sivers xvii
第三版前言 由 Obie Fernandez xix
致謝 xxi
關於作者 xxiii
**第一章:從零到部署 1**
1.1 介紹 4
1.2 開始運行 10
1.3 第一個應用程式 14
1.4 使用 Git 進行版本控制 31
1.5 部署 45
1.6 結論 51
**第二章:一個玩具應用程式 53**
2.1 應用程式規劃 54
2.2 用戶資源 58
2.3 微貼資源 74
2.4 結論 89
**第三章:大多數靜態頁面 93**
3.1 範例應用程式設置 93
3.2 靜態頁面 99
3.3 開始測試 110
3.4 稍微動態的頁面 118
3.5 結論 134
3.6 高級測試設置 136
**第四章:Rails 風格的 Ruby 145**
4.1 動機 145
4.2 字串和方法 150
4.3 其他數據結構 163
4.4 Ruby 類別 177
4.5 結論 190
**第五章:填充佈局 193**
5.1 添加一些結構 193
5.2 Sass 和資產管道 217
5.3 佈局鏈接 227
5.4 用戶註冊:第一步 240
5.5 結論 245
**第六章:建模用戶 247**
6.1 用戶模型 248
6.2 用戶驗證 263
6.3 添加安全密碼 286
6.4 結論 296
**第七章:註冊 299**
7.1 顯示用戶 300
7.2 註冊表單 320
7.3 註冊失敗 329
7.4 註冊成功 345
7.5 專業級部署 358
7.6 結論 362
**第八章:基本登錄 365**
8.1 會話 366
8.2 登錄 382
8.3 登出 403
8.4 結論 406
**第九章:高級登錄 409**
9.1 記住我 409
9.2 “記住我” 勾選框 433
9.3 記住測試 439
9.4 結論 449
**第十章:更新、顯示和刪除用戶 451**
10.1 更新用戶 451
10.2 授權 467
10.3 顯示所有用戶 483
10.4 刪除用戶 500
10.5 結論 512
**第十一章:帳戶激活 515**
11.1 帳戶激活資源 516
11.2 帳戶激活電子郵件 525
11.3 激活帳戶 540
11.4 生產環境中的電子郵件 555
11.5 結論 559
**第十二章:密碼重置 561**
12.1 密碼重置資源 563
12.2 密碼重置電子郵件 574
12.3 重置密碼 581
12.4 生產環境中的電子郵件(第二次) 595
12.5 結論 598
12.6 到期證明比較 599
**第十三章:用戶微貼 601**
13.1 微貼模型 601
13.2 顯示微貼 616
13.3 操作微貼 631
13.4 微貼圖片 657
13.5 結論 675
**第十四章:關注用戶 679**
14.1 關係模型 680
14.2 用戶關注的網頁介面 698
14.3 狀態動態 730
14.4 結論 741
索引 745