put location from POST in response, not just in location header. Thanks Luis for the patch

This commit is contained in:
Reinier Balt 2009-08-11 08:53:08 +02:00
parent e87bd5b19a
commit ee831d19ca

View file

@ -92,7 +92,7 @@ class ProjectsController < ApplicationController
elsif @project.new_record?
render_failure @project.errors.full_messages.join(', ')
else
head :created, :location => project_url(@project)
head :created, :location => project_url(@project), :text => @project.id
end
end
end
@ -293,4 +293,4 @@ class ProjectsController < ApplicationController
project_description
end
end
end