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