Skip to content

Self join - #80

Open
hanshank wants to merge 5 commits into
masterfrom
self_join
Open

Self join#80
hanshank wants to merge 5 commits into
masterfrom
self_join

Conversation

@hanshank

Copy link
Copy Markdown
Collaborator
  • Added tests to the games#update method. The last test is failing, and I just can't seem to fix it. If someone has time to have a look that would be great. We could also just leave it, comment it out and fix it later.

  • Added a functionality in games/index.html.erb where button changes to 'continue game' instead of 'join game' when the user is trying to join his own game.

@mahoneyj02 mahoneyj02 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'll try to check out the last test before our meeting and see if I can figure anything out. Could it relate to the patch at the beginning of the test?

<% if current_user.id == single.user_id %>
<% if user_signed_in? && (current_user.id == single.user_id) %>
<div class="button">
<%= link_to "Continue game", game_path(single.id), method: :put, class: 'btn btn-info' %>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm probably just being dense, but why are we using the method: :put code in here?

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