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

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