I’m a newbie and I can’t resolve a simple problem. I generated a
scaffold “course” and now I try to create a new page to edit my data,
because my goal is produce a two different page with two different
My first step is reproduce the new page like the original edit page, so,
in the successive time, modify it.
I create the new page “score.html.erb”:
Editing course<%= render 'form' %> <%= link_to 'Show', @course %> | <%= link_to 'Back', courses_path %>
I add the method score in “courses_controller.rb”
@course = Course.find(params[:id])
and I put in “/courses/index.html.erb” the link:
next destroy link.
I receive the error:
NoMethodError in Courses#index
undefined method `score_course_path’ for
I try to add some different code line in routes.rb, but this not help
Thanks for the help