Skip to content

Instantly share code, notes, and snippets.

@lappi-lynx
Created November 30, 2012 06:57
Show Gist options
  • Save lappi-lynx/4174208 to your computer and use it in GitHub Desktop.
Save lappi-lynx/4174208 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment