- Series of key-value pairs (e.g. key: 'value'). Both are strings
- Come from the user's browser when they request the page
- Encoded in the url
For an HTTP GET request, if a user's browser requested
http://www.bs.com/?foo=1&boo=octopus
Then:
- params[:foo] would be "1"
- params[:boo] would be "octopus"
Rails has a special syntax for making params into a hash with hashes inside
if the user's browser requested
http://www.example.com/?vote[item_id]=1&vote[user_id]=2
Then:
- params[:vote] would be a hash
- params[:vote][:item_id] would be "1"
- params[:vote][:user_id] would be "2"