title: Make parameter accessible by two actions in same way. params[:user][:form]
body: <h3>Route:</h3>
  
  <p>edit action:
  <code>/profiles/edit?form=address</code></p>
  
  <h2>Controller</h2>
  
  <pre><code>before_action :form_type, only: %i[edit update]
  
  def edit
  end
  
  def update
  end
  
  def form_type
       @form_type = params[:form] || params[:user][:form]
  end
  </code></pre>
  
  <h3>View</h3>
  
  <pre><code>&lt;%= simple_form_for current_user, url: profiles_path, wrapper: :input_group  do |f| %&gt;
                  &lt;%= render_user_form(f, @form_type, self) %&gt;
                  &lt;%= f.input :form, as: :hidden , :input_html =&gt; {value: @form_type} %&gt;
                  &lt;div class="action"&gt;
                    &lt;%= f.submit 'Update', class: ''%&gt;
                  &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>When my parameters get passed to the controller, on the edit page, it passes through to params[:form], but for the update action it's accessible as params[:user][:form]. How do I get the edit page to also make the param accessible the same way as.. params[:user][:form].</p>
  
  <p>I prefer to access as params[:user][:form], not as params[:form], for both actions, if possible.</p>