title: Rails form_for assistance: param is missing or the value is empty
body: <p>I am having an annoying problem with my form_for method while creating forums. Everytime I try to submit a forum for creation, I receive this error from Rails.<code>param is missing or the value is empty: forum</code></p>
  
  <p>The problem is in my forums_param method:</p>
  
  <pre><code>def forum_params
    params.require(:forum).permit(:id, :name, :position)
  end
  </code></pre>
  
  <p>The forum part does not exist. The code below is my form for the view:</p>
  
  <pre><code>well.span11
    .span7
      = form_for @forum, url: forums_path, html: { method: :post } do |f|
        = render partial: "form", locals: { f: f }
        .actions
          = submit_tag 'Create', { class: 'btn btn-primary btn-small' }
  .clear
  </code></pre>
  
  <p>And the partial that it renders:</p>
  
  <pre><code> %fieldset
    %div{class: 'control-group'}
      = label_tag :title, "Title (required)", class: 'control-label required'
      %div{class: 'controls'}
        = text_field_tag :name, nil, class: 'span8'
      - if @forum.errors[:name]
        %p{class: 'error'}#{@forum.errors[:name]}
  
    %div{class: 'control-group'}
      = label_tag :position, "Position", class: 'control-label'
      %div{class: 'controls'}
        = text_field_tag :position, nil, size: 5
  
    %div{class: 'control-group'}
      = label_tag :description, "Description", class: 'control-label'
      %div{class: 'controls'}
        = text_area_tag :description, nil, rows: 10, class: 'span10'
  </code></pre>
  
  <p>Below is the controller code:</p>
  
  <pre><code>  def new
      @forum = Forum.new
    end
  
    def create
      @forum = Forum.new(forum_params)
      if @forum.save
        redirect_to forums_path, flash: { success: t('.success') }
      else
        redirect_to forums_path, flash: { error: t('.error') }
      end
    end
  </code></pre>
  
  <p>I'm not sure what is going on here. I have already implemented the recommendations described under these posts.</p>
  
  <p><a href="https://stackoverflow.com/questions/26083673/actioncontrollerparametermissing-param-is-missing-or-the-value-is-empty">Solution 1</a></p>
  
  <p><a href="https://stackoverflow.com/questions/23984608/rails-4-0-param-is-missing-or-the-value-is-empty">Solution 2</a></p>
  
  <p><a href="https://stackoverflow.com/questions/24681280/param-is-missing-or-the-value-is-empty">Solution 3</a></p>
  
  <p>What is the problem here? Help would be greatly appreciated. </p>