Displaying 1 result from an estimated 1 matches for "tests_id".
Did you mean:
test_id
2006 Jan 25
6
cant convert integer to string
...39;'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/true_false_questions/list/0
any suggestions would be much apreciated. Thank y...