Signed-off-by: Darryl L. Pierce <mcpierce(a)gmail.com>
---
app/views/users/_edit.html.erb | 3 ++-
doc/ChangeLog | 1 +
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/app/views/users/_edit.html.erb b/app/views/users/_edit.html.erb
index 110e9bc..7429ed3 100644
--- a/app/views/users/_edit.html.erb
+++ b/app/views/users/_edit.html.erb
@@ -1,6 +1,7 @@
<div id="content-no-sidebar">
<% html = @this_user.new_record? ? {:method => :post} : {:method => :put}
%>
- <% form_for(:user, @this_user, :url => users_path(@this_user), :html => html)
do |form| %>
+ <% url = @this_user.new_record? ? users_path : user_path(@this_user) %>
+ <% form_for(:user, @this_user, :url => url, :html => html) do |form| %>
<table class="edit">
<caption><%= "#{(a)this_user.new_record? ? 'Create' :
'Edit'} User Account" %></caption>
<tbody>
diff --git a/doc/ChangeLog b/doc/ChangeLog
index 471a238..b9571ac 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -58,6 +58,7 @@ Change Log (0.3.0):
* #229 - Fixed when nil.name showed up when viewing sprints. (BUG)
* #230 - Sprint not started but no error message is shown. (BUG)
* #231 - Fix the breadcrumb trail for the task page. (BUG)
+ * #234 - Fix the URL for user registration. (BUG)
Change Log (0.2.0):
* #97 - Users can request new projects.
--
1.6.2.5
Show replies by date