Plugins - ar-extensions

StarAdd to favorites
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:

  • http://rubyforge.org/frs/?group_id=2113

Zach Dennis

http://www.continuousthinking.com/tags/arext

svn://rubyforge.org/var/svn/arext/trunk/ar-extensions

Rails' (MIT)

  • Currently 5.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Model

Tags

Comments

Add a comment
jiggy 3 Jun 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?

Brian 10 Dec 2007

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

Gabe 30 Apr 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.

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.
Recruiting software

Have a comment?