app/helpers/swimmers_helper.rb
# Builds a custom link_to HTML text.
Builds a custom link_to HTML text.
Builds a custom link_to HTML text .
def build_link_result( span_id, label_text, label_css_class, tooltip_text,
                         path_to_destination, http_method = :get )
    link_to(
      content_tag( :span, label_text, class: label_css_class ),
      path_to_destination,
      {
        method: http_method,
        id: span_id,
        'data-toggle' => 'tooltip',
        title: tooltip_text
      }
    )
  end
def build_link_result ( span_id , label_text , label_css_class , tooltip_text , path_to_destination , http_method = :get ) link_to ( content_tag ( :span , label_text , class : label_css_class ) , path_to_destination , { method : http_method , id : span_id , 'data-toggle' => 'tooltip' , title : tooltip_text } ) end
Builds a custom link_to HTML text.
Builds a custom link_to HTML text .
span_id
<not_specific>
label_text
<not_specific>
label_css_class
<not_specific>
tooltip_text
<not_specific>
path_to_destination
<not_specific>
http_method
<not_specific>