Rails 插件 [关闭]
-
03-07-2019 - |
题
您认为“必须拥有”的最喜欢的 Rails 插件有哪些?
此条目列出了我在大多数 Rails 应用程序中使用的一些我最喜欢的功能: 我最喜欢的 Rails 插件
解决方案
其他提示
- http://github.com/mislav/will_paginate
- http://github.com/nex3/haml
- http://ennerchi.googlecode.com/svn/trunk/plugins/jrails
- http://github.com/smtlaissezfaire/annotate_models (支持 rspec 的 fork)
- http://github.com/dchelimsky/rspec
- http://github.com/dchelimsky/rspec-rails
- http://github.com/joshknowles/rspec-on-rails-matchers
如果您的应用有任何类型的用户模型,Rick Olsen的 restful-authentication 是必须的。
我也偏爱 exception_notification ,以便密切关注生产应用中的错误
HAML(及其兄弟SASS)对我来说真的是第一。你可以在几分钟内学会它们,它们节省的时间会很快增加。
另外,请查看 Authlogic 作为RESTful身份验证的替代方法。
我最近在项目中使用过的最常见的(绝不是所有只是最常见的)
- RESTful 身份验证 (http://github.com/technoweenie/restful-authentication/tree/master)
- 充当状态机 (http://github.com/rubyist/aasm/tree/master)
- 米斯拉夫的will_paginate (http://github.com/mislav/will_paginate)
- HAML 和 SASS (http://github.com/nex3/haml)
- RSpec的 (http://github.com/dchelimsky/rspec)
- RSpec-导轨 (http://github.com/dchelimsky/rspec-rails)
annotate_models
- https://github.com/ctran/annotate_models
custom_err_msg
- https://github.com/gumayunov/定制-ERR-MSG
jrails
- https://github.com/aaronchi/jrails
validation_reflection
- https://github.com/redinger/validation_reflection
acts_as_taggable shoulda(宝石,但更好的单元测试)
普通应用程序开发
- RESTful 身份验证
- 应该
- 与 Exception Notifier 相比,我更喜欢 Hoptoad,但两者都有其优点
- 摩卡存根库
- 工厂女工
脸书开发
- 脸书用户
- facebooker_身份验证
有些已经在其他答案中列出,不需要重复加上:
- 作为类别的行为
- 回形针
- open_id_身份验证
- ZenTest 宝石
ar_mailer ,以便发送电子邮件。
不隶属于 StackOverflow