blakeyoder/pearson_painting — pull request #1 by johnthepink (2014-04-07 18:47:50+00:00)
Title: Mailer without models

You should be able to do something like this. I'm not sure exactly the functionality you needed, but this shows using a form to generate and email with no models involved.

- added a form on the index.html.erb
- form submits to /contact route, which I added, pointing to home controller
- that calls ContactMailer.contact_submit sending in the params from the form post
- that renders contact_submit.text.erb, which generates the email