# 6.6 常用 Gem
## 概要:
本課時總結本書內提到的常用的工具類 Gem。
## 正文
### Devise
提供了用戶注冊,登錄,郵件確認等眾多實用功能。
[https://github.com/plataformatec/devise](https://github.com/plataformatec/devise)
### will_paginate
分頁。
[https://github.com/mislav/will_paginate](https://github.com/mislav/will_paginate)
### cancan(can)
權限管理。因為 Ryan Bates已經兩年沒有維護 cancan 的代碼,Ruby 社區推出了 cancancan。
[https://github.com/CanCanCommunity/cancancan](https://github.com/CanCanCommunity/cancancan)
### carrierwave
文件上傳。
[https://github.com/carrierwaveuploader/carrierwave](https://github.com/carrierwaveuploader/carrierwave)
### ransack
搜索。
[https://github.com/activerecord-hackery/ransack](https://github.com/activerecord-hackery/ransack)
### Active Admin
后臺管理。
[https://github.com/activeadmin/activeadmin](https://github.com/activeadmin/activeadmin)
### Simple Form
方便易用的表單。
[https://github.com/plataformatec/simple_form](https://github.com/plataformatec/simple_form)
### Paranoia
物理和邏輯刪除記錄。
[lhttps://github.com/radar/paranoia](https://github.com/radar/paranoia)
### omniauth
第三方驗證。
[https://github.com/intridea/omniauth](https://github.com/intridea/omniauth)
### settingslogic
配置文件管理。
[https://github.com/binarylogic/settingslogic/](https://github.com/binarylogic/settingslogic/)
### Spree
開源的電商程序。
[https://github.com/spree/spree](https://github.com/spree/spree)
### Ruby China 社區源碼
開源的社區程序。
[https://github.com/ruby-china/ruby-china](https://github.com/ruby-china/ruby-china)
- 寫在前面
- 第一章 Ruby on Rails 概述
- Ruby on Rails 開發環境介紹
- Rails 文件簡介
- 用戶界面(UI)設計
- 第二章 Rails 中的資源
- 應用 scaffold 命令創建資源
- REST 架構
- 深入路由(routes)
- 第三章 Rails 中的視圖
- 布局和輔助方法
- 表單
- 視圖中的 AJAX 交互
- 模板引擎的使用
- 第四章 Rails 中的模型
- 模型的基礎操作
- 深入模型查詢
- 模型中的關聯關系
- 模型中的校驗
- 模型中的回調
- 第五章 Rails 中的控制器
- 控制器中的方法
- 控制器中的邏輯
- 第六章 Rails 的配置及部署
- Assets 管理
- 緩存及緩存服務
- 異步任務及郵件發送
- I18n
- 生產環境部署
- 常用 Gem
- 寫在后面