README.rdoc in comma-0.4.2 vs README.rdoc in comma-0.4.3
- old
+ new
@@ -196,9 +196,13 @@
end
end
end
+With the Rails renderer you can supply any of the regular parameters that you would use with to_comma such as :filename,
+:write_headers, :force_quotes, etc. The parameters just need to be supplied after you specify the collection for the csv as demonstrated
+above.
+
When used with Rails 2.3.*, Comma also adds support for exporting named scopes:
class Book < ActiveRecord::Base
named_scope :recent,
lambda { { :conditions => ['created_at > ?', 1.month.ago] } }