lib/generators/dry_crud/templates/app/controllers/crud_controller.rb
def update(&block)
    assign_attributes
    updated = with_callbacks(:update, :save) { entry.save }
    respond_with(entry, :success => updated, &block)
  end
# Update an existing entry of this model from the passed params.
# There are before and after update callbacks to hook into the action.
# To customize the response, you may overwrite this action and call
# super with a block that gets the format parameter.
#   PUT /entries/1
#   PUT /entries/1.json
Update an existing entry of this model from the passed params.
There are before and after update callbacks to hook into the action.
To customize the response, you may overwrite this action and call
super with a block that gets the format parameter.
Update an existing entry of this model from the passed params . There are before and after update callbacks to hook into the action . To customize the response you may overwrite this action and call super with a block that gets the format parameter .
def update(&block)
    assign_attributes
    updated = with_callbacks(:update, :save) { entry.save }
    respond_with(entry, :success => updated, &block)
  end
def update ( & block ) assign_attributes updated = with_callbacks ( :update , :save ) { entry . save } respond_with ( entry , :success => updated , & block ) end
Update an existing entry of this model from the passed params.
Update an existing entry of this model from the passed params .
block