牛骨文教育服务平台(让学习变的简单)

6.6 常用 Gem

概要:

本课时总结本书内提到的常用的工具类 Gem。

正文

Devise

提供了用户注册,登录,邮件确认等众多实用功能。

https://github.com/plataformatec/devise

will_paginate

分页。

https://github.com/mislav/will_paginate

cancan(can)

权限管理。因为 Ryan Bates已经两年没有维护 cancan 的代码,Ruby 社区推出了 cancancan。

https://github.com/CanCanCommunity/cancancan

carrierwave

文件上传。

https://github.com/carrierwaveuploader/carrierwave

ransack

搜索。

https://github.com/activerecord-hackery/ransack

Active Admin

后台管理。

https://github.com/activeadmin/activeadmin

Simple Form

方便易用的表单。

https://github.com/plataformatec/simple_form

Paranoia

物理和逻辑删除记录。

lhttps://github.com/radar/paranoia

omniauth

第三方验证。

https://github.com/intridea/omniauth

settingslogic

配置文件管理。

https://github.com/binarylogic/settingslogic/

Spree

开源的电商程序。

https://github.com/spree/spree

Ruby China 社区源码

开源的社区程序。

https://github.com/ruby-china/ruby-china