Skip to content

Commit 970713d

Browse files
committed
fix for 400 error when joining a team
1 parent 5f7397d commit 970713d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/views/teams/_similar_teams.html.haml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
.team-avatar
88
=image_tag(team.avatar_url)
99
%h4= link_to team.name, teamname_path(:slug => team.slug), :target => :new
10-
= link_to 'Select', teams_path(Team.new, :slug=> team.slug, :selected => true), :remote => true, :method => :post, :class => "select"
10+
= link_to 'Select', teams_path(Team.new, :team => { :slug=> team.slug, :selected => true }), :remote => true, :method => :post, :class => "select"
1111

1212
- unless exact_team_exists?(@teams, @team)
1313
.just-create-team
1414
%h3 None of the above are my team
15-
= link_to "Create team #{@team.name}", teams_path(@team, :team => {:name => @team.name, :selected => false}), :remote => true, :method => :post, :class => "create-team"
15+
= link_to "Create team #{@team.name}", teams_path(@team, :team => { :name => @team.name, :selected => false }), :remote => true, :method => :post, :class => "create-team"

0 commit comments

Comments
 (0)