class QuickvoteController < ApplicationController
- layout 'hc'
+ layout 'main'
model :quick_voter
model :quick_vote
model :vote
def create
if params[:quickvote]
@quickvote = QuickVote.new(params[:quickvote])
-
+
# store the candidate grabbed through ajax and stored in flash
@quickvote.candidatelist = flash[:candlist]