title: The wonderful ActiveModel::ForbiddenAttributesError
body: <p>I've been using strong_params and trying to get a object create to pass. I have two questions.</p>
  
  <ol>
  <li><strong>How do you find out which attribute is causing the issue?</strong></li>
  <li><strong>What am I missing in the code below?</strong></li>
  </ol>
  
  <p>Lets start with the error, the log tells me nothing.</p>
  
  <pre><code>ActiveModel::ForbiddenAttributesError in JobsController#create
  </code></pre>
  
  <p>Just for giggles, here is the log which I don't see very useful:</p>
  
  <pre><code>Started POST "/jobs" for 127.0.0.1 at 2013-12-17 22:03:59 +0000
  Processing by JobsController#create as HTML
    Parameters: {"utf8"=&gt;"✓", "authenticity_token"=&gt;"Ohq4lVqPVMpjzbZwCfJNYBL78TAcoC0WZLSmpCzMD3k=", "job"=&gt;{"job_title"=&gt;"Junior Rails Developer", "job_description"=&gt;"A new position getig nsomethfins lansnana", "languages"=&gt;["", "Rails", "Ruby"], "country_code"=&gt;"AO", "job_type"=&gt;"Full-Time", "job_salary"=&gt;"30000", "job_level"=&gt;"Junior"}, "commit"=&gt;"Create Job"}
    User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
  Completed 500 Internal Server Error in 8ms
  
  ActiveModel::ForbiddenAttributesError (ActiveModel::ForbiddenAttributesError):
  </code></pre>
  
  <p>Makes sense, but then if I look at my create:</p>
  
  <pre><code>def create
      binding.pry
      @job = Job.new(job_params)
  
      respond_to do |format|
        if @job.save
          format.html { redirect_to @job, notice: 'Job was successfully created.' }
          format.json { render action: 'show', status: :created, location: @job }
        else
          format.html { render action: 'new' }
          format.json { render json: @job.errors, status: :unprocessable_entity }
        end
      end
    end
  </code></pre>
  
  <p>Strong_params:</p>
  
  <pre><code> def job_params
        params.require(:job).permit(:job_title, :job_level, :job_description, :job_salary,
                                    :country_code, :job_type, :state, :languages =&gt; [])
      end
  </code></pre>
  
  <p>I am mainly interested in finding how to find out where the problem is for future as it's seems like a needle in haystack error.</p>