Fixed the device controller update action to render 'edit' instead of just flashing an error