Advertisement
Guest User

Untitled

a guest
Nov 8th, 2012
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.33 KB | None | 0 0
  1. # In the HTML
  2. f.text_field :identifier, popover("Identifier", "The name the registrar uses for the course.<br/> Ex: CS-1210")
  3.  
  4. # In the HELPER
  5. def popover(title, content, placement = "right")
  6.     return [
  7.         [:rel, "popover"],
  8.         [:data, {
  9.             :placement => placement,
  10.             :title => title,
  11.             :content => content
  12.         }]
  13.     ]
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement