def update
@album = Album.find(params[:id])
if @album.update_attributes(params[:album])
redirect_to(:action=>'list')
else
render(:action=>'edit')
end
end
A Rails 1.1.6 tutorial that I'm covering recommends using the update_attributes
method for updating a model, as in the example code from my controller listed above. Looking at the Rails documentation I'm wondering why the update
method would not have been preferred, especially since it is named so logically.