Added initial support fo QuickVotes. There is support for the creation
[selectricity] / app / controllers / site_controller.rb
index f2eb15343aa35cae5f29e85fde40e016b805f491..f4bae4287126e05488dbd76af1d11e2114ecdb33 100644 (file)
@@ -10,4 +10,15 @@ class SiteController < ApplicationController
       end
     end
   end
+
+  def create_quickvote
+    if params[:quickvote] 
+      @quickvote = QuickVote.new(params[:quickvote])
+      if @quickvote.reviewed? and @quickvote.save
+          @quickvote = @quickvote.reload
+         render :action => 'success_quickvote'
+      end 
+    end
+  end
+
 end

Benjamin Mako Hill || Want to submit a patch?