mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-06 17:28:50 +01:00
put location from POST in response, not just in location header. Thanks Luis for the patch
This commit is contained in:
parent
e87bd5b19a
commit
ee831d19ca
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue