app/helpers/user_training_stories_helper.rb
# Returns the HTML for the UserTrainingStoryController#edit() 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#edit() 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#edit () 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_edit( user_training_story )
    link_to( edit_user_training_story_path(id: user_training_story.id), class: 'btn btn-default' ) do
        image_tag('page_edit.png') << "&nbsp; #{I18n.t(:edit)}".html_safe
    end if check_story_ownership_for( user_training_story )
  end
def link_to_user_training_story_edit ( user_training_story ) link_to ( edit_user_training_story_path ( id : user_training_story . id ) , class : 'btn btn-default' ) do image_tag ( 'page_edit.png' ) << "&nbsp; #{I18n.t(:edit)}" . html_safe end if check_story_ownership_for ( user_training_story ) end
Returns the HTML for the UserTrainingStoryController#edit() action of the specified
UserTrainingStory instance, but only if the current user is its owner.
Returns the HTML for the UserTrainingStoryController#edit () action of the specified UserTrainingStory instance but only if the current user is its owner .
user_training_story
<not_specific>