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

Eagle Tiger Panda #16

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

Eagle Tiger Panda #16

wants to merge 5 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Dec 13, 2012

No description provided.

end
Show.all.each do |show|
if user_input.casecmp(show.day_of_week) == 0
puts show
Copy link
Member

Choose a reason for hiding this comment

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

I'd rather you used ActiveRecord to limit the number of shows returned.

Show.where(day_of_week: user_input).each do |show|
  puts show
end

@jwo
Copy link
Member

jwo commented Dec 13, 2012

Looks good! I added a minor note about using queries to limit the number of objects returned and hydrated from the database.

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.

1 participant