Skip to content

Finished MVCgame#21

Open
wesdelp wants to merge 1 commit intopaircolumbus:masterfrom
wesdelp:wdelp-MVCgame
Open

Finished MVCgame#21
wesdelp wants to merge 1 commit intopaircolumbus:masterfrom
wesdelp:wdelp-MVCgame

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

Comments