Displaying 1 result from an estimated 1 matches for "true_false_question_pages".
2006 Jan 25
6
cant convert integer to string
...pt/../config/../app/controllers/true_false_questions_controller.rb:9:in
`[]''
here''s the code snippet:
class TrueFalseQuestionsController < ApplicationController
def index
list
render :action => ''list''
end
def list
if params[:id]
@true_false_question_pages, @true_false_questions = paginate
TrueFalseQuestion.find_all["tests_id = ?"+ params[:id]], :per_page => 10
else
@true_false_question_pages, @true_false_questions = paginate
:true_false_questions, :per_page => 10
end
end
basically vist the url: http://zbyte32:3000/tr...