Skip to content

Conversation

@edgr
Copy link

@edgr edgr commented Apr 7, 2020

  • Making the route /cart a singular resource => cleaner url, no need to pass cart id
  • Removing route to line_items show => not being used a the moment
  • Removing private params method line_item_params => not being used a the moment
  • Added pay_method in rails g model order => missing
  • Fixed item cart_id to update => at the moment, the line_item is not being saved and with dependent destroy it gets deleted before it can be associated to an order

Making the route /cart a singular resource (cleaner url, no need to pass cart id)
Removing route to line_items show (not being used)
Removing unused private params method ```line_item_params```
Missing pay_method in rails g model order
Fixed item cart_id to update (otherwise items gets destroyed with dependent destroy and cannot be assigned to order)
@StephanS13
Copy link

Hi, thank you for fixing these issues. However, even so, the products are not being added to the cart, and "No route matches [DELETE] "/cart.id" " when emptying the cart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants