diff --git a/app/controllers/choices_controller.rb b/app/controllers/choices_controller.rb index 5c62e02..21c0e09 100644 --- a/app/controllers/choices_controller.rb +++ b/app/controllers/choices_controller.rb @@ -43,6 +43,11 @@ class ChoicesController < InheritedResources::Base end end + def votes + @choice = Choice.find(params[:id]) + render :xml => @choice.votes.to_xml + end + def create visitor_identifier = params[:choice].delete(:visitor_identifier) -- libgit2 0.21.2