Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

now working again for single lists. about to test multiple tab lits

  • Loading branch information...
commit 1d5417c243c123b1da50423c0a99c028d1873069 1 parent 534a2d2
@bjeanes authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/helpers.rb
  2. +1 −1  lib/tab_fu.rb
View
4 lib/helpers.rb
@@ -3,8 +3,8 @@ module HelperMethods
def self.included(mod)
mod.module_eval do
def tabs(id = '__default', &proc)
- id = id.nil? ? '' : " id=\"#{id}\""
- concat("<ul#{id}>", proc.binding)
+ html_id = id.nil? || id == '__default' ? '' : " id=\"#{id}\""
+ concat("<ul#{html_id}>", proc.binding)
yield(Tab.new(self, id))
concat('</ul>', proc.binding)
end
View
2  lib/tab_fu.rb
@@ -22,7 +22,7 @@ def tab(*args)
options = args.extract_options!
if args.empty?
args.each_pair do |list, name|
- @__current_tab[list] = name
+ @__current_tab[list.to_s] = name
end
else
@__current_tab['__default'] = args.first
Please sign in to comment.
Something went wrong with that request. Please try again.