-
Notifications
You must be signed in to change notification settings - Fork 49
Sockets-Chantal #30
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
base: master
Are you sure you want to change the base?
Sockets-Chantal #30
Conversation
|
ignore make it better this was for hiroku |
Task ListWhat We're Looking For
|
| @task.update( | ||
| name: params[:task][:name], | ||
| description: params[:task][:description], | ||
| completion_date: params[:task][:completion_date] |
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.
You should be using strong params here and in create.
| unless params.key?(:task) | ||
| @task = Task.new | ||
| else | ||
| @task = Task.new( |
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.
You have merged the create and new actions into one controller method. Separating them out like we did in class would make things a little more clear, especially as our controllers get more complex over the coming weeks.
Task List
Congratulations! You're submitting your assignment!
Comprehension Questions