On 25/05/2006, at 1:06 AM, Laszlo Gyula wrote:
Actually, this isn't what I was exactly looking for, mine is just a
convinient form to clean up the controller, and
to indicate (for ruby and equally for myself) exactly which
attributes are to be updated, while attr_protected seals the
whole model.
Or alternatively:
%w(name email address).each { |f| @person[f] = params[:person][f] }
-- tim lucas
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core