買這商品的人也買了...
-
$1,029Fundamentals of Data Structures in C
-
$450$356 -
$700$686 -
$620$608 -
$1,790$1,701 -
$2,250$2,138 -
$480$408 -
$1,029Discrete Mathematics for Computer Science (Hardcover)
-
$650$514 -
$680$578 -
$650$507 -
$680$578 -
$550$468 -
$480$379 -
$825Ruby Cookbook (Paperback)
-
$720$569 -
$590$466 -
$850$765 -
$580$493 -
$580$493 -
$620$490 -
$520$199 -
$1,990$1,891 -
$600$480 -
$620$490
相關主題
商品描述
Description
Ruby on Rails is the super-productive new way to develop full-featured web applications. With Ruby on Rails, powerful web applications that once took weeks or months to develop can now be produced in a matter of days. If it sounds too good to be true, it isn't.If you're like a lot of web developers, you've probably considered kicking the tires on Rails - the framework of choice for the new generation of Web 2.0 developers. Ruby on Rails: Up and Running from O'Reilly takes you out for a test drive and shows you just how fast Ruby on Rails can go.
This compact guide teaches you the basics of installing and using both the Ruby scripting language and the Rails framework for the quick development of web applications. Ruby on Rails: Up and Running covers just about everything you need - from making a simple database-backed application to adding elaborate Ajaxian features and all the juicy bits in between. While Rails is praised for its simplicity and speed of development, there are still a few steps to master on the way. More advanced material helps you map data to an imperfect table, traverse complex relationships, and build custom finders. A section on working with Ajax and REST shows you how to exploit the Rails service frameworks to send emails, implement web services, and create dynamic user-centric web pages. The book also explains the essentials of logging to find performance problems and delves into other performance optimizing techniques.
As new web development frameworks go, Ruby on Rails is the talk of the town. And Ruby on Rails: Up and Running can make sure you're in on the discussion.
Table of Contents
Preface
1. Zero to Sixty: Introducing Rails
Rails Strengths
Putting Rails into Action
Organization
The Web Server
Creating a Controller
Building a View
Tying the Controller to the View
Under the Hood
What's Next?
2. Active Record Basics
Active Record Basics
Introducing Photo Share
Schema Migrations
Basic Active Record Classes
Attributes
Complex Classes
Behavior
Moving Forward
3. Active Record Relationships
belongs_to
has_many
has_one
What You Haven't Seen
Looking Ahead
4. Scaffolding
Using the Scaffold Method
Replacing Scaffolding
Generating Scaffolding Code
Moving Forward
5. Extending Views
The Big Picture
Seeing Real Photos
View Templates
Setting the Default Root
Stylesheets
Hierarchical Categories
Styling the Slideshows
6. Ajax
How Rails Implements Ajax
Playing a Slideshow
Using Drag-and-Drop to Reorder Slides
Drag and Drop Everything (Almost Everything)
Filtering by Category
7. Testing
Background
Ruby's Test::Unit
Testing in Rails
Wrapping Up
A. Installing Rails
B. Quick Reference
Index
商品描述(中文翻譯)
**描述**
Ruby on Rails 是一種超高效能的新方式,用於開發功能齊全的網頁應用程式。使用 Ruby on Rails,曾經需要數週或數月才能開發的強大網頁應用程式,如今可以在幾天內完成。如果這聽起來太美好而不真實,那麼它並不是。
如果你和許多網頁開發者一樣,可能已經考慮過試用 Rails——這是新一代 Web 2.0 開發者的首選框架。O'Reilly 的《Ruby on Rails: Up and Running》將帶你進行測試駕駛,展示 Ruby on Rails 的快速性能。
這本簡明的指南教你安裝和使用 Ruby 腳本語言及 Rails 框架的基本知識,以便快速開發網頁應用程式。《Ruby on Rails: Up and Running》涵蓋了你所需的幾乎所有內容——從製作簡單的資料庫應用程式到添加複雜的 Ajax 功能,以及所有中間的精彩部分。雖然 Rails 以其簡單性和開發速度而受到讚譽,但在這個過程中仍有幾個步驟需要掌握。更高級的內容幫助你將資料映射到不完美的表格,遍歷複雜的關係,並建立自定義查詢器。關於使用 Ajax 和 REST 的部分,展示了如何利用 Rails 服務框架發送電子郵件、實現網路服務和創建動態以用戶為中心的網頁。這本書還解釋了日誌記錄的基本要素,以便找出性能問題,並深入探討其他性能優化技術。
在新的網頁開發框架中,Ruby on Rails 是當前的熱門話題。而《Ruby on Rails: Up and Running》可以確保你參與這場討論。
**目錄**
前言
1. 零到六十:介紹 Rails
- Rails 的優勢
- 將 Rails 實際應用
- 組織
- 網頁伺服器
- 創建控制器
- 建立視圖
- 將控制器與視圖連結
- 內部運作
- 接下來是什麼?
2. Active Record 基礎
- Active Record 基礎
- 介紹 Photo Share
- 架構遷移
- 基本 Active Record 類別
- 屬性
- 複雜類別
- 行為
- 向前邁進
3. Active Record 關係
- belongs_to
- has_many
- has_one
- 你未曾見過的
- 展望未來
4. 標準化
- 使用 Scaffold 方法
- 替換標準化
- 生成標準化代碼
- 向前邁進
5. 擴展視圖
- 整體概覽
- 查看真實照片
- 視圖模板
- 設定預設根目錄
- 樣式表
- 階層類別
- 美化幻燈片
6. Ajax
- Rails 如何實現 Ajax
- 播放幻燈片
- 使用拖放重新排序幻燈片
- 拖放所有內容(幾乎所有內容)
- 按類別過濾
7. 測試
- 背景
- Ruby 的 Test::Unit
- 在 Rails 中進行測試
- 總結
A. 安裝 Rails
B. 快速參考
索引