title: Rails form not reading form input
body: <p>Those are my first few days with Ruby on Rails and Im failing to create a page where you can read posts and post your own. 
  I can't figure out why my input fields are not getting read.</p>
  
  <p>notices/index.html.erb:</p>
  
  <pre><code>&lt;% if @notices.any? %&gt;
      &lt;ol class="notices"&gt;
          &lt;%= render @notices %&gt;
      &lt;/ol&gt;
  &lt;% end %&gt;
  
  &lt;%= form_for @notice do |f| %&gt;
      &lt;%= render 'shared/error_messages', object: f.object %&gt;
  
      &lt;%= f.label :content %&gt;
      &lt;%= f.text_area :content, placeholder: "Message content" %&gt;
  
  &lt;%= f.submit "Post" %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code>class NoticesController &lt; ApplicationController
  
    def index
      @notices = Notice.paginate(page: params[:page], :per_page =&gt; 6)
      @notice = current_user.notices.new
    end
  
    def create
      @notices = Notice.paginate(page: params[:page], :per_page =&gt; 6)
      @notice = current_user.notices.build(content: params[:content])
      if @notice.save
        flash[:success] = "Message posted!"
        redirect_to root_url
      else
        render 'index'
      end
    end
  </code></pre>
  
  <p>In routes I have defined resources :notices</p>
  
  <p>If I change @notice where content: "some string" my message is getting posted by a proper user with "some string" as a content. But if I try to pass content from my form validation against empty input launches.
  Could you explain what I'm doing wrong?</p>