Method: Megatron::TabHelper::Tabs#tab
- Defined in:
- app/helpers/megatron/tab_helper.rb
#tab(text, href, options = {}, &block) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/helpers/megatron/tab_helper.rb', line 4 def tab(text, href, = {}, &block) [:class] = add_class([:class], "tab") if block link_up href, , &block else link_up href, do text end end end |