Skip to content
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

Ditzy Pull Request #2

Open
wants to merge 303 commits into
base: master
Choose a base branch
from
Open

Ditzy Pull Request #2

wants to merge 303 commits into from

Conversation

jadevance
Copy link

@jadevance jadevance commented May 13, 2016

Project for Betsy.
Leah, Rowan, Jade and Sarah!
http://ditzy.herokuapp.com/products

cotarg and others added 30 commits May 5, 2016 11:05
Pulling in Jade and Rowan's new changes
@@ -0,0 +1,3 @@
class Order < ActiveRecord::Base
has_many :order_items
end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to have more validations on order, like a credit information must be present, etc. Also any calculation logic can go in this model file.

@loganmeetsworld
Copy link

I am really impressed! I love that there are a ton of commits, the website looks great, and all your associations are solid. Keep thinking about the fundamental difference between the M, V, and C in MVC and what should go in the model, views, or controller. Something that can really help you level up in thinking this way is understanding scopes and methods in the model.

Congrats on finishing your first group project!

<strong>Product ID:</strong> <%= product.id %><br>
<%= link_to product.name, user_product_path(product.user_id, product.id) %><br>
<%= product.price %>
</p>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of this @product loop is repeated in other views and could be a partial.

@dezshino
Copy link

dezshino commented May 24, 2016

Woooops, lol just realized I was still logged into someone else's account while I was reviewing, deleting those and re-doing from my account. Sorry, it wasn't a rando!

}

li {
color: #42bad3; /* ditzy bright blue */

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that you commented to explain the colors! Easy to see what each are for

@dezshino
Copy link

Betsy is a huge project, good job!! I love that you had lots of commits and associations were set up well. I noticed on the heroku site there is an error when when trying to buy an item or view the cart, so that's something to look into, but overall it looks really great :)

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.

6 participants