What are 'params' in Rails?
Hash, params

params are a key-value pair that are part of the HTTP GET request that Rails handles specially and turns into a variable for you with these key-value pairs as a HASH.

For example: 


Contains the HTTP extra of ?foo=1&boo=octopus

Rails turns this into a Params hash:

params = { :foo => "1", :boo => "octopus" }

| Back