Ruby on Rails
Tuesday, January 1, 2013
Hi
you might want to have a look at my datashift gem (https://github.com/autotelik/datashift)
it provides import/export facilites between Excel and active record and also provides facilities for paperclip attachments
For example given a User model with photo attachment, you can provide a path to the image in a column and the importer will create a paperclip image
and attach to the parent User model
even if it doesn't exactly fit your needs you should be able to extract code to get you going. plenty of examples in the specs.
hope that helps
cheers
tom
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/5tpkCWKdJwUJ.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment