OSDN Git Service

Fix crash on team update
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Fri, 1 Feb 2013 17:07:54 +0000 (19:07 +0200)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Fri, 1 Feb 2013 17:07:54 +0000 (19:07 +0200)
app/views/teams/edit.html.haml

index e0962f2..3435583 100644 (file)
@@ -1,6 +1,6 @@
 %h3.page_title= "Edit Team #{@team.name}"
 %hr
-= form_for @team, url: teams_path do |f|
+= form_for @team, url: team_path(@team) do |f|
   - if @team.errors.any?
     .alert.alert-error
       %span= @team.errors.full_messages.first