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 #rails #rubyonrails #bosnia #programming #tutorials #rubydeveloper #railsdeveloper

U
Nezir Zahirovic

Freelance software developer Ruby On Rails (4 years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles