Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # In the HTML
- f.text_field :identifier, popover("Identifier", "The name the registrar uses for the course.<br/> Ex: CS-1210")
- # In the HELPER
- def popover(title, content, placement = "right")
- return [
- [:rel, "popover"],
- [:data, {
- :placement => placement,
- :title => title,
- :content => content
- }]
- ]
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement