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
-
#button(*args, &block) ⇒ Object
(also: #button2)
Enhanced
button_tohelper. -
#link(*args, &block) ⇒ Object
(also: #link2)
Enhanced
link_tohelper.
Instance Method Details
#button(*args, &block) ⇒ Object Also known as:
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 (*args, &block) args = self.link_to_args(*args) (*args) end |
#link(*args, &block) ⇒ Object Also known as: link2
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 |