Integration of excel file with Paperclip

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

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 :slight_smile:


Dheeraj K.

On 31 December 2012 05:18, Aurick [email protected]
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

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs