Hi,
Can anyone help me to pass an argument from a controller to a method in
a model…
In Controller:
def show
…
@formatted_question = @question.set_format_for_presentation(“true”)
…
end
In Model:
def set_format_for_presentation(student_true_or_false)
…
end
I am unable to pass “true” or anything else to (student) in the model.
Thanks, I’m still pretty new at this!