title: Guide to creating a contact form in rails 4
body: <p>I am trying to teach myself RoR and am building a site, and want to include a contact form, with "Persons Email" "Subject" and "Message", then a submit button, which will send an email to my email address.</p>
  
  <p>I can't find a simple straightforward guide for beginners for rails 4 that goes through this step by step. So if anyone knows of one or is willing to create a guide, it would be greatly appreciated.</p>
  
  <p>Currently I only have done the visual part, now need to get it to actually send the emails:</p>
  
  <pre><code>              &lt;form  class="form-horizontal" id="contact-form"&gt;
      &lt;div class="control-group"&gt;
          &lt;label class="control-label" for="name"&gt;Name&lt;/label&gt;
          &lt;div class="controls"&gt;
              &lt;input type="text" name="name" id="name" placeholder="Your name" class="form-control input-lg "&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="control-group"&gt;
          &lt;label class="control-label" for="email"&gt;Email Address&lt;/label&gt;
          &lt;div class="controls"&gt;
              &lt;input type="text" name="email" id="email" placeholder="Your email address" class="form-control input-lg"&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="control-group"&gt;
          &lt;label class="control-label" for="message"&gt;Message&lt;/label&gt;
          &lt;div class="controls"&gt;
              &lt;textarea name="message" id="message" rows="8" class="form-control input-lg"&gt;&lt;/textarea&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="form-actions"&gt;
          &lt;button type="submit" class="btn btn-default btn-lg btn-block"&gt;Submit Message&lt;/button&gt;
      &lt;/div&gt;
  &lt;/form&gt;&lt;!-- End contact-form --&gt;
  </code></pre>