title: Rails params (url_params vs form_data)
body: <p>This is just a question out of curiosity.</p>
  
  <p>Rails is magical in the way that it does a lot of things for us, but it comes with a curse of knowledge.
  When Rails receives an http request, we can access the inputs from client via params[]. However, I notice that params can accept inputs from both the url_params, and the form_data. For e.g.:</p>
  
  <pre><code># Get  users/:id (param comes from url)
  # Post users     (param comes from form)
  </code></pre>
  
  <p>Is there a rule to how params[] works? Will Rails just put all the parameters from url and form to params[]?</p>
  
  <p>In the case of NodeJS, there is a distinction between</p>
  
  <pre><code>request.params
  request.body
  request.query
  </code></pre>