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 showMaterial
		@course = Course.find(params[:id])
		@materials = @course.materials.order("updated_at")
	end
def showMaterial @course = Course . find ( params [ :id ] ) @materials = @course . materials . order ( "updated_at" ) 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