-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Leaves_Ga-Young #38
base: master
Are you sure you want to change the base?
Leaves_Ga-Young #38
Conversation
Task ListWhat We're Looking For
|
before do | ||
@completed_task = Task.create(name: "wash car", description: "rinse and wash", completed: DateTime.now) | ||
end | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if we are missing the ID!
must_redirect_to tasks_path | ||
end | ||
|
||
it "will redirect to main page if given an invalid id" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work!
# The following is included in resources | ||
# get '/tasks', to: 'tasks#index', as: 'tasks' | ||
# get '/tasks/new', to: 'tasks#new', as: 'new_task' | ||
# post '/tasks', to: 'tasks#create' | ||
# get '/tasks/:id', to: 'tasks#show', as: 'task' | ||
# get '/tasks/:id/edit', to: 'tasks#edit', as: 'edit_task' | ||
# patch '/tasks/:id', to: 'tasks#update' | ||
# delete '/tasks/:id', to: 'tasks#destroy' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A good note, but in the future, delete this! :) If you ever forget what routes you have rails routes
is your friend
Task List
Congratulations! You're submitting your assignment!
Comprehension Questions