B
B
beginner2015-12-26 22:45:02
Ruby on Rails
beginner, 2015-12-26 22:45:02

RoR Mailer! How to put pictures of an object in a letter?

The crux of the matter is that there is a User and Photo model, respectively user has_many :photos! how to put the last picture in the view of the email sent to the administrator using Mailer?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kozhin, 2015-12-27
@hottabych1991

Here it is described. I'm surprised you didn't google it first.
guides.rubyonrails.org/action_mailer_basics.html#c...
see point 2.3.2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question