Rails 經典實例

Rails 經典實例

《Rails 經典實例》是2007年東南大學出版社出版的圖書,作者是 Rob Orsin

基本介紹

  • 書名:Rails 經典實例
  • 作者:Rob Orsini
  • 原版名稱:Rails Cookbook 
  • ISBN:9787564107802
  • 頁數:514
  • 出版社:東南大學出版社/O'Reilly Media, Inc.
  • 出版時間:2007年6月
  • 開本:16開
  • 叢書名:東南大學出版社O'REILLY圖書系列
內容簡介,目錄,

內容簡介

rails是業界領先的新一代web 2.0應用程式開發框架,而這本《rails cookbook》里充滿了為了讓你成為rails開發專家而準備的各種解決方案。討論範圍覆蓋了從基本概念,如安裝rails及設定開發環境,到最新的各種技巧,如開發符合rest協定規範的web服務等。
rails可提供更輕量級的代碼、更豐富的功能和更快捷的量身定製過程,由此帶來了一場web開發革命。《rails cookbook》應對來自真實世界的各種挑戰,每個問題的解答部分均包含了經測試驗證的解決方案,加上關於怎樣解決和為什麼如此解決的討。因此你不僅可以知其然,還能知其所以然,以便將相關技巧直接運用於類似的場景。議題涵蓋:
以active record庫進行數據建模
以action view和rhtml模板創建視圖
在action controller中構建你的應用程式邏輯
測試並調試你的rails應用程式
以javascript和ajax構建互動式web應用程式
確保你的應用程式的安全性和可用性
以mongrel和apache部署你的應用程式
使用capistrano實現自動化部署
使用大量rails外掛程式
無論是rails新手,還是經驗豐富的資深開發者,你都將從本書中發現一系列有效方法,涉及測試、調試和保護你的應用程式、引入ajax、運用快取改善性能以及將應用程式放入生產環境等方方面面。想搶占web 2.0的潮流先機么?這本極具價值的書會讓你在開發rails應用程式的過程中節省數百小時的寶貴時間。

目錄

foreword
preface
1.getting started
1.1 joining the rails community
1.2 finding documentation
1.3 installing mysql
1.4 installing postgresql
1.5 installing rails
1.6 fixing ruby and installing rails on os x 10.4 tiger
1.7 running rails in os x with locomotive
1.8 running rails in windows with instant rails
1.9 updating rails with rubygems
1.10 getting your rails project into subversion
2.rails development
2.1 creating a rails project
2.2 jump-starting development with scaffolding
2.3 speeding up rails development with mongrel
2.4 enhancing windows development with cygwin
2.5 understanding pluralization patterns in rails
2.6 developing rails in os x with textmate
. 2.7 cross-platform developing eith radrails
2.8 installing and running edge rails
2.9 setting up passwordless authentication with ssh
2.10 generating rdoc for your rails application
2.11 greating full-featured crud applications with streamlined
3.active record
3.1 setting up a relational database to use with rals
3.2 peogrammatically defining database schema
3.3 developing your database with migrations
3.4 modeling a database with active record
3.5 inspecting modelrelationships from the rails console
3.6 accessing your data via active record
3.7 retrieving records with find
3.8 iterating over an active record result set
3.9 retrieving data efficiently with eager loading
3.10 updating an active record object
3.11 enforcing data integrity with active record validations
3.12 executing custom queries with find_by_sql
3.13 protecting against race conditions with transactions
3.14 adding sort capabilities to a model with acts_as_list
3.15 performing a task whenever a model object is created
3.16 modeling a threaded forum with acts_as_nested_set
3.17 creating a directory of nested topics with acts_as_tree
3.18 avoiding race conditions with optimistic locking
3.19 handling tables with legacy naming conventions
3.20 automating record timestamping
3.21 factoring out common relationships with polymorphic associations
3.22 mixing join models and polymorphism for flexible data modeling
4.action controller
4.1 accessing form data from a controller
4.2 changing an application's default page
4.3 clarifying your code with named routes
4.4 configuring customized routing behavior
4.5 displaying alert messages with flash
4.6 extending the life of a flash message
4.7 following actions with redirects
4.8 generating urls dynamically
4.9 inspecting requests with filters
4.10 logging with filters
4.11 rendering actions
4.12 restricting access to controller methods
4.13 sending files or data streams to the browser
4.14 storing session information in a database
4.15 tracking information with sessions
4.16 using filters for authentication
5.action view
5.1 simplifying templates with view helpers
……
6.restful development
7.rails application testing
8.java script and ajax
9.action mailer
10.debugging rails applications
11.security
12.performance
13.hosting and deployment
14.extending rails with plug-ins
15.graphics
appendix:migrating to rails 1.2
index

相關詞條

熱門詞條

聯絡我們