-
Notifications
You must be signed in to change notification settings - Fork 19
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
Queues - Andrea Valliere & Kaitlin Ramirez - VideoStoreAPI #9
base: master
Are you sure you want to change the base?
Conversation
…rs now rendering with movies_checked_out_count
Video StoreWhat We're Looking For
Good work overall! |
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.
nice job! Leah and I worked together (that's why you won't see comments from her screen name)
validates :name, presence: true | ||
|
||
def movies_count | ||
return 0 |
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.
not sure what this method is doing. Why should it always return 0?
has_many :rentals | ||
has_many :customers, :through => :rentals | ||
validates :title, presence: true | ||
|
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.
Leah says she doesn't like these two spaces here, you might as well delete :)
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<style> | ||
/* Email styles need to be inline */ |
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.
get out of the habit of leaving comments in your code...it will help you during internship 🙄 (bc I do the same)
Rails.application.routes.draw do | ||
get "customers", to: "customers#index", as: "customers" | ||
get "movies", to: "movies#index", as: "movies" | ||
get "movies/:title", to: "movies#show", as: "movie" |
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.
awesome job of keeping them dry :)
end | ||
end | ||
|
||
# describe "show" do |
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.
if you don't need this just delete
@@ -0,0 +1,50 @@ | |||
require "test_helper" | |||
|
|||
describe MoviesController do |
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.
yayyyyy tests!
end | ||
|
||
# No customer show per READ ME | ||
# def show |
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.
delete any code you're not using
Video Store API
Congratulations! You're submitting your assignment!
If you didn't get to the functionality the question is asking about, reply with what you would have done if you had completed it.
Comprehension Questions
get "customers"
get "movies"
get "movies/:title"