mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-07 01:38:50 +01:00
Fix syntax errors for upgrade of Rails version
This commit is contained in:
parent
7f567862d7
commit
86e36b07a6
9 changed files with 21 additions and 21 deletions
|
|
@ -186,7 +186,7 @@ class ProjectsController < ApplicationController
|
|||
end
|
||||
format.xml do
|
||||
if @project.new_record?
|
||||
render_failure @project.errors.to_xml.html_safe, 409
|
||||
render_failure @project.errors.full_messages.to_xml(root: "errors", skip_types: true).html_safe, 409
|
||||
else
|
||||
head :created, :location => project_url(@project), :text => @project.id
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue