-
Notifications
You must be signed in to change notification settings - Fork 14
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
Ampers: Fur-eign Keys #27
base: master
Are you sure you want to change the base?
Conversation
… weird. Seems ok now, though.
… and an additional instance of OrderItem is not created.
… method for the cart controller. Nothing is completed or functional yet w/re this.
…e updated and working. Methods within the cart controller for add_product, access_cart, and the private create_cart are also working.
…to make new instances for anyone other than the logged in user.
…ctionality now attached.
…nued_products_orders_orderitem_reviews_controller_testing
…nued_products_orders_orderitem_reviews_controller_testing
…s_controller_testing
bEtsyWhat We're Looking For
Only the person who submitted the PR will get an email about this feedback. Please let the rest of your team know about it. |
@product_2 = products(:product_2) | ||
@product_2.user_id.must_equal @user_2.id | ||
|
||
modified_2 = Product.find_by(user_id: @user_2.id) |
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 finding the product by the product ID not user.id. This test is failing due to that!
|
||
get '/auth/:provider/callback', as: 'auth_callback', to: 'sessions#create' | ||
|
||
get '/auth/github', as: 'github_login' |
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.
This route shouldn't be here. Omniauth is adding this route to redirec the user to github.
<%= f.select :id, Category.all.map { |category| [category.name, category.id] }, :prompt => 'Select a category' %> | ||
</div> | ||
<div class="filter-button"> | ||
<%= f.submit "Sumbit", class: "button" %> |
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.
submit
? This button won't show as you aren't making a submit button.
|
||
def update_cart_info | ||
@cart = Order.find_by(id: session[:cart_order_id]) | ||
if @cart && @cart.id == session[:cart_order_id] |
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.
Maybe strong params would be useful here.
before_action :require_login | ||
skip_before_action :require_login, only: [:create] | ||
|
||
def 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.
What purpose is this route/action serving?
bEtsy
Congratulations! You're submitting your assignment! These comprehension questions should be answered by all members of your team, not by a single teammate.
Comprehension Questions