title: Required parameter in Rails controller is false and throws error
body: <p>In one of my controllers I have the following line:</p>
  
  <pre><code>params.require(:advertiser).permit(:price)
  </code></pre>
  
  <p>If I try to submit a form for this controller through my front-end and without an advertiser param, <code>param</code> looks like this:</p>
  
  <pre><code>{"advertiser"=&gt;false, "controller"=&gt;"advertisers", "action"=&gt;"create"}
  </code></pre>
  
  <p>With advertiser being false, I get an error:</p>
  
  <pre><code>     NoMethodError:
         undefined method `permit' for false:FalseClass
  </code></pre>
  
  <p>What do I have to do to have an error shown on my front-end instead of throwing an exception?</p>