问题
I have seen many sites which provide the whole list of Rails plugins
, Ruby libraries
and Ruby gems
, but we hardly use few of them and some may not suit our requirement and we spend a whole lot of time searching for useful Plugins
which suits our requirement.
I have created this poll, people can post useful libraries, gems and plugins
which they have come across. It would be great help for newbies like me and to the entire Ruby
on Rails community
.
Note: to keep this poll as useful as possible, please remember:
- Post only one library, gem, or plugin per answer
- Mention the name of the library, gem, or plugin which you find it useful.
- URL of the location of the resource
- We don't want duplicate answers, so before posting check if the library has been mentioned already.
Edit: Any new plugins/Gems for Rails 3 ?
Thanks!
回答1:
Will Paginate - essential for pagination.
回答2:
HAML and SASS
回答3:
devise - a more comprehensive authentication gem
回答4:
Authlogic - Easy Authentication
回答5:
Rspec - for BDD.
回答6:
Formtastic - Awsome form helpers.
It lets you do things like this:
<% semantic_form_for @user do |f| %>
<% f.inputs do %>
<%= f.input :email %>
<%= f.input :password %>
<%= f.input :password_confirmation %>
<% end %>
<% f.buttons do %>
<%= f.commit_button 'Sign Up' %>
<% end %>
<% end %>
and get decent, semantic HTML:
回答7:
FactoryGirl : Fixture replacement for focused and readable tests.
回答8:
Paperclip - Simple file uploads
回答9:
Nokogiri - for all your XML and HTML parsing and searching needs.
回答10:
Capistrano - for easy deployment.
回答11:
Faker - for creating valid, fake data. Great for populating an empty dev DB / testing.
回答12:
Annotate - simple gem which adds something like
#== Schema Information
#
#Table name: buttons
#id :integer(4) not null, primary key
#text :string(255)
#font_size :integer(4)
#user_id :integer(4)
#created_at :datetime
#updated_at :datetime
#button_stats :integer(4) default(0), not null
to your model definitions and fixtures
回答13:
Thinking Sphinx - for integrating with Sphinx for dead-simple text-searching in your app.
回答14:
Clearance for authentication.
回答15:
Populator - for pushing data into the DB when populating it. Used in conjunction with Faker. More info here.
回答16:
cancan - for roles, companion of authlogic
回答17:
Capistrano-ext - allows you to setup separate deploy recipes for staging / production / whatever other environment you have
回答18:
Seed-Fu - Easy database seeding gem. Please don't use migrations to seed your database! :)
回答19:
prawn - PDF generation
回答20:
Cucumber - BDD and testing
It lets software development teams describe how software should behave in plain text. The text is written in a business-readable domain-specific language and serves as documentation, automated tests and development-aid - all rolled into one format.
回答21:
grosser-rpx_now - Interface into RPXNow.com, which provides an interface into OpenID, Facebook, MySpace, Twitter, and much more in terms of authentication. A great companion for Authlogic.
回答22:
Mofo gem - A ruby microformat parser , Helps to import Profile data from networking sites which implements microformats using hResume,hCard . ex LinkedIn , Xing ,Twitter etc .
Very useful gem .
回答23:
soap4r
: A must have for making soap calls!
Source: http://rubyforge.org/projects/soap4r/
回答24:
Contacts is a universal interface to grab contact list information from various providers including Hotmail, Gmail and Yahoo.
回答25:
jRails is a drop-in jQuery replacement for the Rails Prototype/script.aculo.us helpers.
回答26:
Delayed Job for background processing.
回答27:
calendar_date_select - calendar pop-up
回答28:
thin, a faster http server
回答29:
Webrat - testing
is a Ruby integration test library. It has two main purposes:
- Implement a browser simulator to allow fast, reliable integration testing (sans JavaScript) without requiring Selenium or Watir and their associated issues.
- Define a ubiquitous DSL for describing interacting with a web application from the perspective of an end user.
回答30:
simple_form - built on top of formtastic, and despite its name it's even better giving you better control (by being agnostic) over layout and everything is configurable. I'm surprised it wasn't listed already as it's very popular.
来源:https://stackoverflow.com/questions/1141998/most-useful-rails-plugins-ruby-libraries-and-ruby-gems