Agile Web Development

Build it. Launch it. Love it.


ActiveRecord::Extensions provides extensions to:
  • mass import data
  • convert ActiveRecord models and arrays to CSV format
  • work with temporary tables
  • control foreign keys
  • to include extensible features for better and custom finder support

    Latest Release
    For the latest release please see the rubyforge project page:



Repository svn://
License Rails' (MIT)
Rating (17 votes)
Owner Zach Dennis
Created 14 February 2007


  • Avatar
    30 April 2007

    This plugin has become indispensable to me. The mass data import with MySQL's ON DUPLICATE KEY UPDATE syntax has hit a huge sweet spot in performance/maintainability for me. Also, the extensions to Rails 1.2 hash conditions (ie. field suffixes like gt _contains _startswith and like) make it possible to do a lot of tricky condition merges that would only be possible using withscope if I was still using traditional rails conditions in array form. Zach has also been tremendously responsive to feedback and future ideas. I encourage everyone to get behind this project. Some of it should definitely be in core.

  • Brian
    10 December 2007

    This is so good that it really should be merged with rails itself...

  • Avatar
    3 June 2008

    I just want to use "to_csv" using "ar-extensions," but I have not been successful so far. What I did was:

    1. gem install 'ar-extension'
    2. ruby script/console
    3. require 'ar-extensions'
    4. a = User.find :first
    5. a.to_csv

    NoMethodError: undefined method to_csv' for #<User:0x48bb86c> from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/active_record/base.rb:1863:inmethod_missing' from (irb):19 from :0

    What should I do?

Add a comment