Displaying 1 result from an estimated 1 matches for "all_questions_act".
2011 Mar 28
0
Token Poken :( I'm stuck with this
...ll. If he want to get on
this page once again he will get message something like "Sorry bro you
already passed quiz".
#answer_controller.rb
class AnsweController < ApplicationController
layout "default"
$all_questions_archive = Question.count(''id'')
$all_questions_active =
Question.find(:all,:conditions=>"enabled=1").count
def create
@w1 = rand(9999999)
@w = Digest::SHA1.hexdigest(@w1.to_s)
@answers=Hash.new
questions = Question.find(:all,:conditions=>"enabled=1")
questions.each do |question|
if param...