title: Right way to store parameters?
body: <p>Currently, I store the user_id in a session:</p>
  
  <pre><code>session[:user_id] = user.id
  </code></pre>
  
  <p>Later I retrieve the data when the user clicks on a specific external link and save it to the DB.</p>
  
  <pre><code>def offer_params
    params.permit(:offer_id).merge(user_id: session[:user_id])
  end
  </code></pre>
  
  <p>Is this the right way to store parameters over multiple views? Is this save from changing by the user?</p>
  
  <p>And: are there alternative ways to do this?</p>