Permalink
Browse files

More bits tweaks

  • Loading branch information...
1 parent b1b92d8 commit 8c2133fa50e111a6f311c940b279174f40044a45 @ddemaree committed Nov 8, 2011
Showing with 7 additions and 2 deletions.
  1. +6 −1 db/bits.yml
  2. +1 −1 views/index.erb
View
@@ -13,8 +13,13 @@
avec: "Avec"
big_star: "Big Star"
the_publican: "The Publican"
- potluck: "Potluck at David's House"
+ potluck: "Potluck at David's house"
cumin: "Cumin"
+ any_chinese: "Chinese food"
+ any_bbq: "BBQ"
+ any_vegetarian: "Vegetarian"
+ any_burgers: "Burgers"
+ any_mexican: "Mexican food"
drinks:
aviary: "The Aviary"
whistler: "The Whistler"
View
@@ -143,7 +143,7 @@ end
</h3>
</div>
<ul class="unstyled places">
- <% @bits[namespace].shuffle.each do |key, name| %>
+ <% @bits[namespace].to_a.shuffle.each do |key, name| %>
<li>
<label data-bind="css: { 'checked': (bits().indexOf('<%= namespace %>.<%= key %>') > -1) }">
<input name="party[bits][]" type="checkbox" value="<%= namespace %>.<%= key %>" data-bind="checked: bits" <%= 'checked' if @party.bits.include?("#{namespace}.#{key}") %>>

0 comments on commit 8c2133f

Please sign in to comment.