Commit 9bf5aba98acb15105919b6c6e02e828306bf3ee9
1 parent
f9554c7b
Exists in
master
and in
1 other branch
Added choices#votes
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
app/controllers/choices_controller.rb
... | ... | @@ -43,6 +43,11 @@ class ChoicesController < InheritedResources::Base |
43 | 43 | end |
44 | 44 | end |
45 | 45 | |
46 | + def votes | |
47 | + @choice = Choice.find(params[:id]) | |
48 | + render :xml => @choice.votes.to_xml | |
49 | + end | |
50 | + | |
46 | 51 | def create |
47 | 52 | |
48 | 53 | visitor_identifier = params[:choice].delete(:visitor_identifier) | ... | ... |