Re: [Rails] Integration of excel file with Paperclip

117 views
Skip to first unread message

Dheeraj Kumar

unread,
Dec 31, 2012, 3:51:27 PM12/31/12
to rubyonra...@googlegroups.com
Sure, it's very much possible. However, you need to post exactly what steps you've taken, and where exactly you're facing the problem, in order for the community to help you in any way :)

-- 
Dheeraj Kumar

On Monday 31 December 2012 at 10:48 AM, Aurick wrote:

Hello,
I am working on rails project and I want to send mail those person whose name I have uploaded in excel file and their photos through paperclip.And my mail format is on their anniversary automatic mail send by application and mail contain his/her photo as well as information regarding that particular one from excel sheet .

I am stuck with it,it is possible or not?

Thank you in advance!!!

Aurick

--
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 rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/AsTgLyDDFZoJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Colin Law

unread,
Dec 31, 2012, 4:35:59 PM12/31/12
to rubyonra...@googlegroups.com
On 31 December 2012 05:18, Aurick <ashutosh...@indusnet.co.in> wrote:
> Hello,
> I am working on rails project and I want to send mail those person whose
> name I have uploaded in excel file and their photos through paperclip.And my
> mail format is on their anniversary automatic mail send by application and
> mail contain his/her photo as well as information regarding that particular
> one from excel sheet .

Look at the spreadsheet gem for reading excel files.

Colin

qwan

unread,
Jan 1, 2013, 6:45:59 AM1/1/13
to rubyonra...@googlegroups.com
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

Reply all
Reply to author
Forward
0 new messages