问题
What are some of your favorite rails plugins that you would consider "must haves"?
This entry lists some of my favorites that I use in a large majority of my rails applications: My favorite rails plugins
回答1:
- RESTful Authentication
- Exception Notification
- Acts As State Machine
- Shoulda
- Account Location
I use all of these in 99% of all of my Rails projects. Each link provides detailed information regarding what they do and why they are awesome.
Hope that helped!
回答2:
- 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 (fork that supports rspec)
- http://github.com/dchelimsky/rspec
- http://github.com/dchelimsky/rspec-rails
- http://github.com/joshknowles/rspec-on-rails-matchers
回答3:
Gem or plugin, doesn't matter:
- haml
- shoulda
- factory_girl
- hubahuba
- hoptoad_notifier
- strip_attributes
- has_many_polymorphs
- will_paginate
回答4:
If your app has any kind of user model, Rick Olsen's restful-authentication is a must.
I'm also partial to exception_notification for keeping tabs on errors in production apps.
回答5:
HAML (and its sibling SASS) are really number one for me. You can learn them in only a few minutes and the time they save adds up very quickly.
Also, take a look at Authlogic as an alternative to RESTful Authentication.
回答6:
most common i've used across projects lately (by no means all just most common)
- RESTful Authentication (http://github.com/technoweenie/restful-authentication/tree/master)
- Acts As State Machine (http://github.com/rubyist/aasm/tree/master)
- Mislav's will_paginate (http://github.com/mislav/will_paginate)
- HAML & SASS (http://github.com/nex3/haml)
- RSpec (http://github.com/dchelimsky/rspec)
- RSpec-Rails (http://github.com/dchelimsky/rspec-rails)
回答7:
annotate_models - https://github.com/ctran/annotate_models
custom_err_msg - https://github.com/gumayunov/custom-err-msg
jrails - https://github.com/aaronchi/jrails
validation_reflection - https://github.com/redinger/validation_reflection
回答8:
acts_as_taggable shoulda (gem, but better unit testing)
回答9:
Normal App Development
- RESTFul authentication
- shoulda
- I prefer Hoptoad over Exception Notifier, but both have their merits
- Mocha stubbing library
- Factory Girl
Facebook Development
- facebooker
- facebooker_authentication
回答10:
Some already listed in other answers that don't need repeating plus:
- acts_as_categoy
- paperclip
- open_id_authentication
- ZenTest gem
回答11:
ar_mailer for email delivery.
来源:https://stackoverflow.com/questions/415215/rails-plugins