Also you can have two form elements, one hidden field like <input type="hidden" name="thing[id]" value="id_of_thing"/> ans second is regular input <input type="text" name="thing[replace]"/>
Then you can just Thing.update_attributes(params[:thing]) ...