-
Notifications
You must be signed in to change notification settings - Fork 16
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
ports - Elle, Cloudy, Sav, Margaret #67
base: master
Are you sure you want to change the base?
Conversation
…tom method to item
…lo/betsy into submaster checking out Margaret's new features for pull request
Purchase function
…s instewad of cents
Merchants new products
Model testing
…ibly' on home page view and updated products route to destroy instead of delete.
fixed margin
fixed item count display
Merchant- and Category-Specific pages styled
added pink hover to categories and merchants
fixed margins on toggle bar
…ex, and prod show
Upcase products
added style for footer
fixed min height on main
Margin to checkboxes
UPDATE SEEDS DB
bEtsyWhat We're Looking ForManual testing
Code Review
Overall FeedbackGreat work overall! You've built a fully functional web store from top to bottom. This represents a huge amount of work, and you should be proud of yourselves!. I am particularly impressed by the way that you styled it, I like the responsive menu. You also did a great job of catching details. This is by far the most through and complete project I've graded this cohort. You should be proud. I do see some room for improvement around some small edge cases in testing like ensuring a product is pending before allowing an item to be updated or added to it. You can also have used more controller filters in a few places. Really there's not much to find fault in. bEtsy is a huge project on a very short timeline, and this feedback should not at all diminish the magnitude of what you've accomplished. Keep up the hard work! Only the person who submitted the PR will get an email about this feedback. Please let the rest of your team know about it. |
|
||
resources :products, except: [:destroy] do | ||
resources :reviews, only: [:create] | ||
resources :items, only: [:create, :update] |
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 probably don't need to nest update.
<h1>Intangibly</h1> | ||
<p id="tagline" class= "magic roll-in-blurred-left "><%= image_tag "intangible.png", alt: "logo", class: "img" %>find your magic</p> | ||
<% if session[:merchant_id] %> | ||
<% merchant = Merchant.find_by(id: session[:merchant_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.
The find_by
here should be done in the controller.
</a> | ||
</div> | ||
<% if session[:merchant_id] %> | ||
<% merchant = Merchant.find_by(id: session[:merchant_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.
The find_by here should be done in the controller. No business logic in the view.
before_action :find_cart_order, only: [:create] | ||
|
||
def create | ||
# find product and order |
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.
There's a lot of business logic in this method. I feel that this should be a model method.
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