app/controllers/materials_controller.rb
# All teaching material ordered by name
All teaching material ordered by name
All teaching material ordered by name
def edit
		@material = Material.find(params[:id])
		@courses = Course.order("name ASC").all
	end
def edit @material = Material . find ( params [ :id ] ) @courses = Course . order ( "name ASC" ) . all end
All teaching material ordered by name
All teaching material ordered by name