T
Thierry Delbart
Hello,
I'm running into an issue I don't understand (I'm new to ruby):
in my "Journey" controller / "course_detail" action I render the
following partial (this is call by a Prototype Ajax function):
render artial => 'courses/course_detail', bject => @course
in the _course_detail.erb file I have:
Distance*: <span id="courseDistance"> <%= course.distance %></span><br
/>
BUT I tells me "course" doesn't exist: "undefined local variable or
method 'course'"
Please, can someone help me through this one???
I'm running into an issue I don't understand (I'm new to ruby):
in my "Journey" controller / "course_detail" action I render the
following partial (this is call by a Prototype Ajax function):
render artial => 'courses/course_detail', bject => @course
in the _course_detail.erb file I have:
Distance*: <span id="courseDistance"> <%= course.distance %></span><br
/>
BUT I tells me "course" doesn't exist: "undefined local variable or
method 'course'"
Please, can someone help me through this one???