Module: ActivatedUI::Helpers

Defined in:
lib/activated_ui/helpers.rb

Instance Method Summary collapse

Instance Method Details



5
6
7
8
9
# File 'lib/activated_ui/helpers.rb', line 5

def activated_link_to refs, name, url, link_options={}
  refs = [refs] if refs.is_a? Symbol # If we're given a symbol make it an array
  link_options[:class] = "#{link_options[:class]} #{activated_class(*refs)}".strip
  link_to(name, url, link_options)
end