-
Notifications
You must be signed in to change notification settings - Fork 47
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
Elle - Ports #45
base: master
Are you sure you want to change the base?
Elle - Ports #45
Conversation
…. Generated a Votes model. Configured routes.
…alidations in models.
…er. Also wrote destroy action for works controller.
… tests for users controller.
…reated views for same. Form is not loginform is not displaying field or button.
…. Also created and modified views for each action.
…or each work. Added title field to work form (oopos, forgot last time) Started troubleshooting problem of a new work not being saved (create method not working, form not passing params but it is because the tests pass) - investigation continues.
Media RankerWhat We're Looking For
Hi Elle! We've had a conversation about Media Ranker so I'll keep it brief: Things I want to touch base on and make sure your working knowledge feels solid:
Things you did well on:
My interesting observation is that you have some code that doesn't work while manually testing... for example, you've implemented flash, but never showed it. You have some pages/views that don't have buttons on the site. It might be interesting to think about what's going on, so I'll mention it briefly at our next one-on-one Good work, though. Media Ranker is a huge project with a lot of moving parts! |
# end | ||
|
||
def create | ||
new_user = User.new[:user_params] |
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.
Instead of User.new[:user_params
, you'll want to use the private method named user_params
as an argument for the method new
(which means ()
, not []
), so new_user = User.new(user_params)
<h1>User Summary: <%= @user.username%> </h1> | ||
|
||
<p> | ||
<%= "Joined site @user.created_at" %> |
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.
Didn't interpolate @user.created_at
hehe
}, | ||
} | ||
|
||
Work.new(valid_work_params) |
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.
The format valid_work_params
follows the structure for how Rails formats form data when it sends it to the controller via params
and using our strong params method. Thus; it's not quite the right place to use this form (nested hash) for a model test
Media Ranker
Congratulations! You're submitting your assignment!
Comprehension Questions
session
andflash
? What is the difference between them?