Commit 86b93915 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix 500 error on edit with ui

parent da88fca3
...@@ -25,7 +25,7 @@ class EditTreeController < ProjectResourceController ...@@ -25,7 +25,7 @@ class EditTreeController < ProjectResourceController
redirect_to project_blob_path(@project, @id), notice: "Your changes have been successfully commited" redirect_to project_blob_path(@project, @id), notice: "Your changes have been successfully commited"
else else
flash[:notice] = "Your changes could not be commited, because the file has been changed" flash[:notice] = "Your changes could not be commited, because the file has been changed"
render :edit render :show
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment