Use Hash fetch when using Rails params in controllers
03-May-2018 2914
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 #fetch #using #Rails #params #controllers #params https://rubyonrails.ba/link/use-hash-fetch-when-using-rails-params-in-controllers