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