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 create
		@course = Course.new(course_params)  
		if @course.save
			redirect_to @course
		else
			render 'new'
		end
	end
def create @course = Course . new ( course_params ) if @course . save redirect_to @course else render 'new' 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