Permalink
Browse files

Fix updates of sprints and user_stories

  • Loading branch information...
1 parent 74ea3ac commit 28383f3b0b0e267a98be5a0214805afdc36ee58d @bigon bigon committed May 4, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/views/sprints/_edit.html.erb
  2. +1 −1 app/views/user_stories/_edit.erb
@@ -1,5 +1,5 @@
<% labelled_tabular_remote_form_for :sprint, @sprint,
- :url => {:controller => "sprints", :action => "update", :project_id => @project.identifier},
+ :url => {:controller => "sprints", :action => "update", :project_id => @project.identifier, :id => @sprint.id},
:html => {:method => :post, :multipart => true, :id => 'sprint-form'} do |f| %>
<%= render(:partial => "sprints/form", :locals => {:f => f}) %>
@@ -1,7 +1,7 @@
<div id="new_us_form_cont">
<div id="new_us_form">
-<% remote_form_for @user_story, :url => {:controller => 'user_stories', :action => "update", :project_id => @project.identifier, :target => target},:html => { :method => :post} do |f| %>
+<% remote_form_for @user_story, :url => {:controller => 'user_stories', :action => "update", :project_id => @project.identifier, :id => @user_story.id, :target => target},:html => { :method => :post} do |f| %>
<%= f.error_messages %>
<p>

0 comments on commit 28383f3

Please sign in to comment.