Delete Job Listings
Goals
job_path DELETE /jobs/:id(.:format) jobs#destroy
Steps
Step 1: Send DELETE
<h5><%= button_to 'Delete Posting', job, method: :delete %></h5>Error! Woo!!!
The action 'destroy' could not be found for JobsController
Step 2: add the destroy method
def destroy end@job = Job.find(params[:id]) @job.destroy redirect_to jobs_path
Now would be a good time to commit to git
Next Step:
Go on to Add More Things