Use Hash fetch when using Rails params in controllers
A Ruby hash is typically accessed using square brackets, like hash[key], but you can also use the method fetch, like hash.fetch(key).
Use Hash fetch when using Rails params in controllers #ruby #rubydeveloper #rubyonrails #params https://rubyonrails.ba/single/use-hash-fetch-when-using-rails-params-in-controllers