Ruby on Rails Tutorial - Michael Hartl

Ruby on Rails Tutorial

Michael Hartl

出版时间

2012-08-06

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 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

AI导读
核心看点
  • 以实战项目贯穿全书,从环境搭建到部署上线,完整演示Rails应用开发流程。
  • 深入讲解测试驱动开发(TDD)理念,培养读者规范的编码习惯与工程思维。
  • 涵盖Git版本控制、Bootstrap前端及Heroku部署,提供全方位Web开发指南。
适合谁读
  • 零基础的Web开发初学者,希望通过动手实践快速掌握Ruby on Rails框架。
  • 有其它语言经验,想转战Rails开发,寻求高效入门路径的程序员。
  • 希望系统学习TDD测试驱动开发及现代Web工程规范的开发者。
读前提醒
  • 务必跟着代码亲手敲一遍,仅阅读不实践无法获得真正的编程能力提升。
  • 注意书中版本差异,若使用新版Rails或Ruby,需参考笔记解决兼容报错。
  • 建议配合官方在线版阅读,获取最新内容更新及免费的交互式学习体验。
读者共识
  • 被誉为Rails入门首选教程,内容详实且逻辑清晰,被公认为经典之作。
  • 学习曲线平滑,成就感强,能让读者直观理解Rails的优雅与强大。
  • 不仅教语法,更传授内功,其TDD和工程规范的教学价值远超框架本身。

本导读基于书籍简介、目录、原文摘录、短评和书评生成,不等同于全文精读。

精彩摘录
  • "$ git config --global alias.co checkout"
  • "$ git config --global core.editor "mate -w""
  • "git init"
  • ".bundle db/*.sqlite3* log/*.log *.log /tmp/ doc/ *.swp *~ .project .DS_Store"
  • "git add ."
  • "$ git status # On branch master # Changed but not updated: # (use "git add/rm <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # deleted: app/controllers/application_controller.rb # no changes added to commit (use "git add" an"
  • "git checkout -f"
  • "$ git remote add origin git@github.com:<username>/<app name>.git $ git push origin master"
作者简介
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 Derek Sivers xv
Foreword to the First Edition by Obie Fernandez xvii
Acknowledgments xix
About the Author xxi

显示全部
用户评论
例子详实,随书讲解WebDev的基本理念、TDD,和Git的使用。培养读者很好的基本习惯。100%好书。
2012-07-17, 2012-07-09, 26.5
比起web敏捷开发,本书的内容更新更快,还提供免费的在线版。示例项目为用户验证系统和微博,设计的非常好,除了基本的rails概念外,还能够从中了解到TDD、Bootstrap和很多开发用的Gem
容易上手
网页版的http://ruby.railstutorial.org/chapters/beginning#top
跟着里面一步一步做还是很有帮助的
很简单的入门书,但是很多知识点都是一行代码直接给出来,如果不研读api文档和rails官方指南有点难理解
本来以为只是一本rails的好书 读完以后 对于TDD也有了新的认识 国外的书籍确实质量过硬 收获很大
刷了一遍。不错。TDD第一次接触。
很不错的书,详细、扎实,TDD的使用很精彩
收藏