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

Styling and nav fixes on index page #18

Merged
merged 2 commits into from
Dec 8, 2016
Merged

Styling and nav fixes on index page #18

merged 2 commits into from
Dec 8, 2016

Conversation

JackShelley
Copy link
Collaborator

@@ -0,0 +1,9 @@
<% if user_signed_in? %>
<% @user.games << @game %>
Copy link

Choose a reason for hiding this comment

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

@JackShelley
This is adding the @GAMe to the users collection. This should take place in the controller, not in a view.

If this action is to add a game to a users collection, then we should come up with a different routing mechanism for that.

@@ -5,7 +5,7 @@
root 'games#index'
resources :games
resources :comments

get 'games/:id/own' => 'games#own'
Copy link

Choose a reason for hiding this comment

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

@JackShelley
By rendering this template you cause a change in the resources, this is violating the GET request's property of being idempotent.

@PAnd0 PAnd0 mentioned this pull request Dec 8, 2016
@PAnd0 PAnd0 merged commit 8b64e11 into master Dec 8, 2016
@coryrmathis coryrmathis deleted the css-stuff branch December 8, 2016 22:08
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.

3 participants