rails/strong_parameters — pull request #76 by jrgifford (2013-01-07 03:09:07+00:00)
Title: Simplified the README example.

Instead of getting tricky with .tap, we should be keeping it simple.

def update
redirect_to current_account.people.find(params[:id]).tap { |person|
person.update_attributes!(person_params)
}
end

That's the current README example.

This can (and probably should) be simplified to

def update
person = current_account.people.find(params[:id])
person.update(person_params)
redirect_to person
end

They do the exact same thing from what I can tell.

(thanks @steveklabnik for helping me figure this out)