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 .
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
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.
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.