web/mooctracker_rails/app/controllers/projects_controller.rb
#Send a PUT/PATCH request on /projects/id , to edit a particular project
Send a PUT/PATCH request on /projects/id , to edit a particular project
Send a PUT / PATCH request on / projects / id to edit a particular project
def update
  	@project = Project.find(params[:id])
    if @project.update_attributes(user_params)
      flash[:success] = "Project updated"
      redirect_to @project
    else
      render 'edit'
    end
  end
def update @project = Project . find ( params [ :id ] ) if @project . update_attributes ( user_params ) flash [ :success ] = "Project updated" redirect_to @project else render 'edit' end end
Send a PUT/PATCH request on /projects/id , to edit a particular project
Send a PUT / PATCH request on / projects / id to edit a particular project