Module: ActivatedUI::Helpers
- Defined in:
- lib/activated_ui/helpers.rb
Instance Method Summary collapse
Instance Method Details
#activated_link_to(refs, name, url, link_options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/activated_ui/helpers.rb', line 5 def activated_link_to refs, name, url, ={} refs = [refs] if refs.is_a? Symbol # If we're given a symbol make it an array [:class] = "#{[:class]} #{activated_class(*refs)}".strip link_to(name, url, ) end |