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

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