app/helpers/trainings_helper.rb
# Returns the HTML for the TrainingController#delete() action of the specified
# Training instance, but only if the current user is its owner.
# (Only creators can edit their content.)
#
# Assumes training is a valid Training instance.
#
Returns the HTML for the TrainingController#delete() action of the specified
Training instance, but only if the current user is its owner.
(Only creators can edit their content.)

Assumes training is a valid Training instance.
Returns the HTML for the TrainingController#delete () action of the specified Training instance but only if the current user is its owner . ( Only creators can edit their content . ) Assumes training is a valid Training instance .
def link_to_training_delete( training )
    link_to(
      I18n.t(:delete),
      training_path(id: training.id),
      method: :delete,
      confirm: I18n.t('netzke.basepack.grid_panel.are_you_sure'),
      class: 'btn btn-default'
    ) if check_training_ownership_for( training )
  end
def link_to_training_delete ( training ) link_to ( I18n . t ( :delete ) , training_path ( id : training . id ) , method : :delete , confirm : I18n . t ( 'netzke.basepack.grid_panel.are_you_sure' ) , class : 'btn btn-default' ) if check_training_ownership_for ( training ) end
Returns the HTML for the TrainingController#delete() action of the specified
Training instance, but only if the current user is its owner.
Returns the HTML for the TrainingController#delete () action of the specified Training instance but only if the current user is its owner .
training
<not_specific>