title: Store create not saving to database
body: <p>I am trying to create a form that will allow my users to create a store that is associated with them in rails. </p>
  
  <p>I have a has_many and belongs_to association in place but can't seem to get the store to even save to the database to see if the association is working.</p>
  
  <p>Currently for the form in my stores#new view I have:</p>
  
  <pre><code>&lt;%= form_for @store do |f| %&gt;
  
  &lt;div class = "field"&gt;
      &lt;%= f.label :name %&gt;
      &lt;%= f.text_field :name %&gt;
  &lt;/div&gt;
  
  &lt;%= f.submit "Submit" %&gt;
  
  &lt;% end %&gt;
  </code></pre>
  
  <p>and for my new and create actions I have the following in my stores controller</p>
  
  <pre><code>def new
    @store = Store.new
  end
  
  def create
    @user = current_user 
    @store = @user.stores.new(params[:stores])
  
    if @store.save
      redirect_to store_path
    else
      render newstore_path
    end
  end
  </code></pre>
  
  <p>My model name is definitely singular as well (store).</p>
  
  <p>This has worked for me in the past and so I am confused why it isn't now. </p>
  
  <p>If someone could show me the absolute easiest way to successfully associate two models using nested resources and then create a form that will maintain this association that would be unbelievably helpful as I have been struggling with this for the past few days and really think a solid example would help. </p>
  
  <p>Any information people can offer would be excellent though. Thanks in advance :) </p>