Ruby on Rails Tutorial 6/e

Hartl, Michael

  • 出版商: Addison Wesley
  • 出版日期: 2020-07-04
  • 定價: $1,960
  • 售價: 8.0$1,568
  • 語言: 英文
  • 頁數: 848
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 0136702651
  • ISBN-13: 9780136702658
  • 相關分類: Ruby
  • 立即出貨(限量) (庫存=2)



"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
Used by sites as varied as Disney, GitHub, Shopify, 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(TM) Tutorial, Sixth 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 6.

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 while still being 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 a 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 GitHub
  • Deploy your applications early and often with Heroku


「Ruby on Rails(TM) 教程」是由 Michael Hartl 撰寫的一本必讀書籍,對於學習如何建立 Rails 應用程式的開發者來說,已經成為必備資源。──Peter Cooper,《Ruby Inside》編輯

Ruby on Rails 是最受歡迎的網頁應用程式開發框架之一,被迪士尼、GitHub、Shopify 和 Airbnb 等各種網站所使用,但學習和使用它可能具有一定的挑戰性。無論您是新手還是只是對 Rails 新手,《Ruby on Rails(TM) 教程,第六版》都是您的解決方案。

暢銷書作家和領先的 Rails 開發者 Michael Hartl 通過引導您開發三個不斷增加複雜度的示例應用程式,來教授 Rails。本教程的示例重點關注網頁開發的一般原則,適用於幾乎任何類型的網站。本版更新包括與 Rails 6 的完全兼容性。

這本不可或缺的指南不僅提供了針對 Rails 的整合教程,還提供了開發網頁應用程式所需的基本 Ruby、HTML、CSS 和 SQL 技能的教程。Hartl 解釋了每種新技術如何解決實際問題,然後用簡單易懂但實用的代碼進行演示。無論您之前的網頁開發經驗如何,本書都將引導您真正掌握 Rails。


- 安裝和設置 Rails 開發環境,包括預先安裝的雲端集成開發環境(IDE)
- 超越生成的代碼,真正理解如何從頭開始構建 Rails 應用程式
- 學習測試和測試驅動開發(TDD)
- 有效使用模型-視圖-控制器(MVC)模式
- 使用 REST 架構結構化應用程式
- 構建靜態頁面並將其轉換為動態頁面
- 掌握所有 Rails 開發者所需的 Ruby 編程技能
- 創建高質量的網站佈局和數據模型
- 實現註冊和身份驗證系統,包括驗證和安全密碼
- 更新、顯示和刪除使用者
- 在生產環境中使用雲端存儲服務上傳圖片
- 實現帳戶激活和密碼重設,包括使用 Rails 發送電子郵件
- 添加社交功能和微博客,包括 Ajax 簡介
- 使用 Git 記錄版本更改,並在 GitHub 上創建安全的遠程存儲庫
- 使用 Heroku 提前且經常部署您的應用程式


Michael Hartl is the creator of the Ruby on Rails Tutorial, one of the leading introductions to web development, and is cofounder and principal author at Learn Enough. Previously, he was a physics instructor at the California Institute of Technology (Caltech), where he received a Lifetime Achievement Award for Excellence in Teaching. He is a graduate of Harvard College, has a Ph.D. in Physics from Caltech, and is an alumnus of the Y Combinator entrepreneur program.


Michael Hartl是Ruby on Rails Tutorial的創作者,該教程是網頁開發的領先入門之一,他也是Learn Enough的聯合創始人和主要作者。在此之前,他曾是加州理工學院(Caltech)的物理教師,並因卓越教學而獲得終身成就獎。他畢業於哈佛學院,擁有加州理工學院的物理學博士學位,並且是Y Combinator企業家計劃的校友。