I am trying to get to grips with the params hash in RoR. I’m not sure if I’m missing something, but my understanding so far is that the params hash is a hash containing either form entered data or query string data related to a POST request. Where params[:item] creates a symbol where the relevant POST data/query is stored. Again not sure if I’m correct on this, any enlightenment would be much appreciated. Thanks
I am trying to get to grips with the params hash in RoR. I’m
Share
The params hash is described in detail in the Action Controller Overview. TL;DR: the params hash holds all GET or POST parameters passed to the controller, as well as the :controller and :action keys.