Apologies because I know this has come up before but I am simply having
no luck search archives or Google other than this wiki article:
What I want to do is have a contact form in my app. It doesn’t need a db
table, just the fields, but I do want to use ActionMailer to send the
messages. I generated the mailer and thought a simple model class,
controller and form would do the trick. Controller and form were (if I
did this right) okay but not getting anywhere with the model. Controller
has new and send_message actions, new shows the form and send_message,
which is the form’s action, calls the generated mailer.
Could some kind soul help with the model? The fields are :name, :email,
:subject, :message, :ipaddress, :c_date (the last two are set by
:initialize in the model).
If I get this done I’ll update that wiki article with the lesson