Displaying 1 result from an estimated 1 matches for "response_".
Did you mean:
responses
2006 Jul 04
1
Smart html output for an object?
..., so let me start by showing you some code... I was trying to
use this following code as a helper method,
def print_question(question)
@question = question
case @question.question_type.code
when ''free_response''
text_area(@question, :response, :id => "response_" +
question.id.to_s, :cols => 40, :rows => 10)
else
"boo!"
end
end
this is just mock up code, I can''t get this to work. Something about
text_area() needing variables of a certain scope.
I can''t think of a smart way to go about this. It...