Skip to content

Instantly share code, notes, and snippets.

View lappi-lynx's full-sized avatar
🚴
Cycling from home

Stanislav Kniazev lappi-lynx

🚴
Cycling from home
View GitHub Profile
@lappi-lynx
lappi-lynx / popup
Created November 30, 2012 06:57
create popup
def create_popup(discipline)
if discipline.short_description.present?
options = {:content => discipline.short_description, "original-title" => t("discipline.short_description_title"),
:trigger => "hover" }
end
content_tag(:div, :data => options ) do
discipline.name
end
end