Фильтр на обновление только разрешенных полей
%w(name email address).each { |f| @person[f] = params[:person][f] }
TextSnippets > xtrim > request
2581 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
%w(name email address).each { |f| @person[f] = params[:person][f] }