Links
ar-extensions
Categories
ar-extensions
- 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
Vitals
| Home | http://www.continuousthinking.com/tags/arext |
|---|---|
| Repository | svn://rubyforge.org/var/svn/arext/trunk/ar-extensions |
| License | Rails' (MIT) |
| Tags |
activerecord conditions hash import
|
| Rating | (16 votes) |
| Owner | Zach Dennis |
| Created | 14 February 2007 |
Comments
-
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 starts_with and like) make it possible to do a lot of tricky condition merges that would only be possible using with_scope 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.
-
This is so good that it really should be merged with rails itself...
-
I just want to use "to_csv" using "ar-extensions," but I have not been successful so far. What I did was:
- gem install 'ar-extension'
- ruby script/console
- require 'ar-extensions'
- a = User.find :first
- 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:in `method_missing' from (irb):19 from :0What should I do?

