Ruby on Rails 3 Tutorial

Michael Hartl

出版时间

2010-12-16

ISBN

9780321743121

评分

★★★★★
书籍介绍
“Ruby on Rails™ 3 Tutorial: Learn Rails by Example by Michael Hartl has become a must read for developers learning how to build Rails apps.” —Peter Cooper, Editor of Ruby Inside Using Rails 3, 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™ 3 Tutorial is the solution. Leading Rails developer Michael Hartl teaches Rails 3 by guiding you through the development of your own complete sample application using the latest techniques in Rails web development. Drawing on his experience building RailsSpace, Insoshi, and other sophisticated Rails applications, Hartl illuminates all facets of design and implementation—including powerful new techniques that simplify and accelerate development. 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导读
核心看点
  • 通过构建仿Twitter应用,手把手教学Rails开发全流程
  • 深度融入TDD测试驱动开发理念,培养严谨编程习惯
  • 涵盖Git版本控制与环境配置,提供完整工程实践指导
适合谁读
  • 零基础的Ruby on Rails初学者及Web开发新手
  • 希望系统学习TDD测试驱动开发方法的程序员
  • 寻求规范开发流程与最佳实践的中级开发者
读前提醒
  • 务必动手跟随代码实操,仅阅读无法掌握精髓
  • 注意书中版本差异,高版本Rails需调整部分配置
  • 前期环境配置较繁琐,需耐心调试,切勿轻言放弃
读者共识
  • 被公认为Rails入门最佳教程,口碑极佳
  • 虽框架细节非重点,但传授内功与规范极具价值
  • 测试用例编写繁琐,但有助于养成良好编码习惯

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

精彩摘录
  • "$ 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 [email protected]:<username>/<app name>.git $ git push origin master"
用户评论
前几章给初学者看很不错。。后面几章草草掠过基本没有太大帮助
读过的最棒的入门书。
电子版:http://ruby.railstutorial.org/ruby-on-rails-tutorial-book?version=3.2
很体贴...就是给我这种弱人用的...
实在是难得的优秀技术类书籍。
对于rails项目的架构和目录结构没有一个很好的讲解,对于新手来说rails自动化命令帮助生成项目会掩盖掉很多细节的东西,如果能在这块做一个翔实的补充会是锦上添花的,是一本好书,作者语言非常平易近人,无太多生涩难懂的语句和单词。
很好用的书
很好的新手教程
一不小心就写了个tiny版的微博~~~
看的第五版,标记一下
收藏