app/controllers/courses_controller.rb
# Set up the "All-to-All" pattern links for the course pages
Set up the "All-to-All" pattern links for the course pages
Set up the " All - to - All " pattern links for the course pages
def update
		@course = Course.find(params[:id])
		if @course.update(course_params)
			redirect_to @course
		else
			render 'edit'
		end
	end
def update @course = Course . find ( params [ :id ] ) if @course . update ( course_params ) redirect_to @course else render 'edit' end end
Set up the "All-to-All" pattern links for the course pages
Set up the " All - to - All " pattern links for the course pages
# Try to save course in db