S
Subashini Kumar
Hi,
I am new to Rails.I tried developing a basic quiz application.Please
help me out in my doubt.Thanks in advance
<% CODE %>
class QuizController < ApplicationController
def index
# i have retrieved the first five questions from the database for
displaying the #question to user
@quiz=Quiz.find
all,:limit=>5)
end
def report
end
# this method checks the answer and gives score
def checkanswer
# here i want to access the @quiz object which is a set of questions i
have #retreived from the database.Hot to access it?
end
end
I am new to Rails.I tried developing a basic quiz application.Please
help me out in my doubt.Thanks in advance
<% CODE %>
class QuizController < ApplicationController
def index
# i have retrieved the first five questions from the database for
displaying the #question to user
@quiz=Quiz.find
end
def report
end
# this method checks the answer and gives score
def checkanswer
# here i want to access the @quiz object which is a set of questions i
have #retreived from the database.Hot to access it?
end
end