flash success changed to flash.now and moved to update_attributes block