title: simple_form_for: Removing root model name from params
body: <p>When I create a form using simple_form_for @model, upon submit the post params has all the attributes grouped under params[model]. How do I get simple_form to drop this grouping and instead send it directly (under params root)? </p>
  
  <pre><code>&lt;%= simple_form_for @user, do |f| %&gt;
  &lt;%= f.input :name %&gt;
  &lt;%= f.input :password %&gt;
  &lt;%= f.submit %&gt;
  </code></pre>
  
  <p>Now the name and password attributes would normally be sent under params[:user][:name], params[:user][:password] etc. How do I get simple_form to post these as params[:name], params[:password] etc.? </p>
  
  <p>Thanks!<br>
  Ramkumar</p>
  
  <p>ps: In case you are wondering why I need this, the bulk of my app is to serve as an API and I have built a set of methods to validate a request which expect some attributes to be in root. In a rare instance (forgot password), I actually need to present a form and I am looking for a way to use these methods. </p>