title: Adding variable to params in rails
body: <p>How can i add user_id into params[:page] i don't want to use hidden fields.</p>
  
  <pre><code>@page= Page.new(params[:page])
  </code></pre>
  
  <p>Is there a way to use like </p>
  
  <pre><code>@page= Page.new(:name=&gt;params[:page][:name], :user_id =&gt; current_user.id)
  </code></pre>