Forum: Ruby on Rails Mailing to a form field

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
doug (Guest)
on 2007-05-29 02:31
(Received via mailing list)
I have generated a mailer.  The name of the mailer class is 'Taf'  and
the name of my email action method is 'confirm'.  I added an action
method named taf_send to an existing controller which happened to be
named 'specialoffer' as follows:

class SpecialofferController < ApplicationController
  # Other actions have been omitted for clarity.
  def taf_send

I then call '/specialoffer/taf_send' from the action attribute of a
form tag.  Everything seems to work fine as I have a fixed email
address set for a single
recipient in 'app/models/taf.rb'.  However, in the real world, the
email address of the intended recipient is contained in a field in the
form that calls /specialoffer/taf_send'.  The name of the field
happens to be 'Email'.  The question is, how can I get at that the
value of that form field from my confirm action method so that I can
grab the address from the form and and direct the mail to it?

Thanks for any input.

      ... doug
doug (Guest)
on 2007-05-29 07:00
(Received via mailing list)
I got it figured out.
Thanks, though.

      ... doug
This topic is locked and can not be replied to.