Skip to content

Instantly share code, notes, and snippets.

@jarib
Created March 25, 2013 11:34
Show Gist options
  • Save jarib/5236553 to your computer and use it in GitHub Desktop.
Save jarib/5236553 to your computer and use it in GitHub Desktop.
def vote_result_groups
{
:for => {...}
:against => {...}
:absent => {...}
}
end
---
<% [:for, :against, :absent].each do |result_key| %>
<% issue_vote.vote_result_groups[result_key].each do %>
<% end %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment