title: Moving rails from to from _form.html.erb to application.html.erb
body: <p>I have most of the functionality done for a site. Now I am trying to make it look nice. I have a _form.html.erb that works great.</p>
  
  <pre><code>&lt;%= form_for(@card) do |f| %&gt;
  &lt;% if @card.errors.any? %&gt;
  &lt;div id="error_explanation"&gt;
    &lt;h2&gt;&lt;%= pluralize(@card.errors.count, "error") %&gt; prohibited this card from being saved:&lt;/h2&gt;
  
    &lt;ul&gt;
      &lt;% @card.errors.full_messages.each do |msg| %&gt;
      &lt;li&gt;&lt;%= msg %&gt;&lt;/li&gt;
      &lt;% end %&gt;
    &lt;/ul&gt;
  &lt;/div&gt;
  &lt;% end %&gt;
  
  &lt;div class="field"&gt;
    &lt;%= f.label :event %&gt;&lt;br /&gt;
    &lt;%= f.text_field :event %&gt;
  &lt;/div&gt;
  &lt;div class="actions"&gt;
    &lt;%= f.submit %&gt;
  &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>Files</p>
  
  <pre><code>view
  - cards
  -- new.html.erb
  -- index.html.erb
  -- show.html.erb
  - layouts
  -- application.html.erb
  - pages
  -- index.html.erb
  </code></pre>
  
  <p>I make a call for the form from new.html.erb and it works sends it to show.html.erb, just as I want. I'm using bootstrap and decided to make use of the nav bar. I have placed the nav bar code into the application.html.erb. It works just fine, well kind of. I want what would normally be a search function to be the add a new card.</p>
  
  <p>When I add the form call it does not work, when I add it directly to the application page it does not work. I'm not sure, I have spent hours on this. I got it to work only on the show.html.erb page, both index pages would error out. I honestly don't remember how I did this though.</p>
  
  <p>I'm trying to learn by doing, but I am stuck and need some help.</p>
  
  <p>Thank you,
      Ian</p>