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

Finished MVCgame #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Finished MVCgame #21

wants to merge 1 commit into from

Conversation

wesdelp
Copy link

@wesdelp wesdelp commented Jun 1, 2016

new_wine[:comments] = gets.chomp
print "\nEnter a rating (0-10): "
new_wine[:rating] = gets.chomp
return new_wine
Copy link

Choose a reason for hiding this comment

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

ruby standard is to omit return in situations like this. new_wine will do the trick by itself.

@sjreich
Copy link

sjreich commented Jun 1, 2016

For me, this exercise always forces a lot of hard questions about where things belong. There's some stuff in the view here that seems somewhere between controller-y and view-y, and it's hard to sort it out in a natural way.

@wesdelp
Copy link
Author

wesdelp commented Jun 1, 2016

Cool, I'll take a closer look at the MVC organization. Thanks! @sjreich

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