Plugins - ar-extensions
Add 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
http://www.continuousthinking.com/tags/arext
svn://rubyforge.org/var/svn/arext/trunk/ar-extensions
Rails' (MIT)
Model


I just want to use "to_csv" using "ar-extensions," but I have not been successful so far. What I did was:
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 :0What should I do?
This is so good that it really should be merged with rails itself...
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.