simple_tabs 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/simple_tabs.rb +2 -2
- metadata +1 -1
data/lib/simple_tabs.rb
CHANGED
@@ -59,8 +59,8 @@ module ActionView
|
|
59
59
|
def tabs_for(name, tabs=[])
|
60
60
|
@tabs = tabs
|
61
61
|
@name = name
|
62
|
-
@default_tab ||= @tabs.try(:first)
|
63
|
-
@current_tab ||= params[@name]
|
62
|
+
@default_tab ||= format_tab(@tabs.try(:first))
|
63
|
+
@current_tab ||= format_tab(params[@name])
|
64
64
|
#logger.info("TABLIST #{default_tab} #{@default_tab} #{current_tab}")
|
65
65
|
content_tag(:ul, :class=>'tab_list') do
|
66
66
|
safe_join(tabs.map do |tab|
|