Module: Link2::Helpers

Includes:
Brain
Defined in:
lib/link2/helpers.rb

Constant Summary

Constants included from Brain

Brain::AutoDetectionFailed, Brain::BUTTON_TO_OPTION_KEYS, Brain::CLASS_INSTANCE_STRING, Brain::IGNORED_OPTION_KEYS, Brain::LINK_TO_OPTION_KEYS, Brain::NilArgument, Brain::POLYMORPHIC_OPTION_KEYS, Brain::URL_PATH_REGEX

Instance Method Summary collapse

Instance Method Details

#button(*args, &block) ⇒ Object Also known as: button2

Enhanced button_to helper.

Usage/Examples:

(See link - identical except for passed button_to-options)



24
25
26
27
# File 'lib/link2/helpers.rb', line 24

def button(*args, &block)
  args = self.link_to_args(*args)
  button_to(*args)
end

Enhanced link_to helper.

TODO: Documentation for this helper. For now the README should be sufficient.



12
13
14
15
# File 'lib/link2/helpers.rb', line 12

def link(*args, &block)
  args = self.link_to_args(*args)
  link_to(*args)
end