more info

Media72 Hosting Articles and Tips

10 Ruby On Rails Plugins You Should Be Using

One of Ruby on Rails strengths is how easy it is to extend with Ruby Gems and plugins, becuase you don’t have to code everything yourself you can save a lot of time. One problem facing Rails codes is knowing what plugins are out there and how to use them. The following is a list of 10 plugins that should make your coding life much easier and save you a fair bit of time.

  1. attachment_fu - Anyone dealing with file uploads, especially images, should take a look at this plugin, it’s a replacement for acts_as_attachment. The plugin is easily configurable and supports storing uploaded files in the file system, database, or on Amazons S3 service. It also supports 3 image manipulation libraries for resizing and altering your uploaded images, Image Science, Mini Magick, and Rmagick.
  2. acts_as_taggable_on_steroids - Tag clouds are not particularly easy to code when you are first starting out. This plugin handles all of the heavy lifting for you including adding and removing tags and even tag cloud calculations.
  3. minus_r - If you are not keen on the prototype javascript library and want to use alternative libraries without replacing the default rails javascript helpers or want to write real javascript in your rjs templates this plugin is for you.
  4. acts_as_ferret - Powerful search plugin that fuilds on the ferret gem for enabling full text searching in your applications. Ferret is a port of Apache’s Lucene and enables fast powerful searches with very little code.
  5. white_list - Is essential for any site that allows users to input html to be displayed, this plugin lets you filter out bad HTML tags and attributes to strip out unwanted code and reduce the risk of XSS attacks.
  6. acts_as_ordered - This plugin provides an easy way to find a records neighbours, great if you want to provide previous and next buttons on your site.
  7. BlueCloth/RedCloth - These two are actually gems and convert markdown and textile syntax into HTML markup.
  8. Rspec - All the cool kids are using it these days, why not jump on the fashion bandwagon too? Seriously though, Rspec is a way of specifying how your application “should” behave and then testing it actually “does” what it should.
  9. autotest - This makes testing a breeze, it keeps track of which files you are working on and automatically runs the tests for the file when you save them. When you hook this into growl you can get popup notifications that tell you if your tests passed or failed. Now you can concentrate on coding and forget about remembering to run your tests, works with Rspec and rails built in unit test.
  10. restful_authentication - This replacement for act_as_authenticated offers easy site authentication in a box.
  11. acts_as_rateable - OK we lied, this is the 11th plugin lets call this one a freebie. Add a ratings system to any model, very simple to use neat little plugin.

We hope you found this list useful, try them out and let us know what you think of them. Of course all of the plugins are fully compatible with our Ruby on Rails hosting packages.

Share and Enjoy:

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • Furl
  • Ma.gnolia
  • NewsVine
  • Reddit
  • Digg
  • StumbleUpon

14 Responses to “10 Ruby On Rails Plugins You Should Be Using”

  1. Michael Bleigh Says:

    Not to toot my own horn, but I have made a new plugin based on acts_as_taggable_on_steroids that allows for custom tagging contexts…just providing the link in case anyone could use it.

    http://www.intridea.com/2007/12/4/announcing-acts_as_taggable_on

  2. links for 2007-12-11 « Bloggitation Says:

    […] 10 Ruby On Rails Plugins You Should Be Using (tags: ruby rails programming) […]

  3. Interesting Rails Tidbits #1 Says:

    […] 10 Ruby on Rails Plugins You Should Be Using is an article that pretty much covers what it says in the title. The author looks at ten different useful Rails plugins and gives a reason for their inclusion in the list. Amongst the ten are attachment_fu, white_list, Rspec and autotest. […]

  4. Marc Beyerlin Says:

    I missed the acts_as_statemachine plugin! Its really helpfullto handle state and leads you to nice meta-programmed models.

  5. paketep Says:

    Thanks!

    But, are they 10 (”10 Ruby On Rails Plugins You Should Be Using”), 12 (”The following is a list of 12 plugins”) or 11 (the actual number of plugins listed? ;)

  6. herval Says:

    there’s one plugin called acts-as-rated (http://rubyforge.org/projects/acts-as-rated) which does the exact same thing as acts_as_rateable… Is there any real difference between them?

  7. Dr Nic Says:

    Is the minus_r/minus_mor plugin relevant now we have .js.erb template extensions?

  8. Josh Nichols Says:

    Two plugins I’d include in the list:

    scope_out: helps create custom finders based on conditions, ordering, etc, with minimal amount of effort

    will_paginate: the new school way of paginating

    I only discovered these recently, but I can’t imagine going back.

  9. Tim Harper Says:

    I wanted to plug PragDave’s plugin

    annotate_models: puts your table’s schema information at the top of each of your corresponding models. Really great if you’re editor has inline text-complete!

  10. Media72 Says:

    Good spot paketep, I have changed the number to 10 :)

  11. links for 2007-12-13 « Simply… A User Says:

    […] 10 Ruby On Rails Plugins You Should Be Using (tags: rails plugins ruby programming rubyonrails plugin ** list links) […]

  12. Mark’s Link Blog » links for 2007-12-13 Says:

    […] Media72: Web Hosting Services Technical Blog ยป 10 Ruby On Rails Plugins You Should Be Using (tags: rails plugins ruby rubyonrails) […]

  13. sb Says:

    Personally, I find Shoulda ( http://thoughtbot.com/projects/shoulda ) to be as useful as rspec and much more friendly to my project. It doesn’t break Test::Unit, it produces output that IDEs can grok, … RSpec has been a breath of fresh air, but I find Shoulda gets me just about as far without getting in my way nearly as much.

    Just another plugin to be aware of.

  14. Justin Blake Says:

    I just wanted to second that will_paginate should be on this list. The pagination helper was removed from Rails 2.0 and will_paginate seems to be becoming the new standard unless you want to roll your own or use the deprecated classic_pagination.

Leave a Reply

 

hedges