Method: Stay::Admin::BedTypesController#update

Defined in:
app/controllers/stay/admin/bed_types_controller.rb

#updateObject



28
29
30
31
32
33
34
# File 'app/controllers/stay/admin/bed_types_controller.rb', line 28

def update
  if @bed_type.update(bed_type_params)
    redirect_to admin_bed_types_path, notice: 'Bed type was successfully updated.'
  else
    render :edit
  end
end