Forum: Ruby on Rails Integration of excel file with Paperclip

Posted by Aurick (Guest)
on 2012-12-31 19:49
(Received via mailing list)
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
Posted by Dheeraj Kumar (Guest)
on 2012-12-31 21:53
(Received via mailing list)
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
Posted by Colin Law (Guest)
on 2012-12-31 22:38
(Received via mailing list)
On 31 December 2012 05:18, Aurick <ashutosh.raushan@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
Posted by qwan (Guest)
on 2013-01-01 12:47
(Received via mailing list)
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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.