mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix spacing regression in scaffold generator
This commit is contained in:
parent
e738acd080
commit
a4d21f764c
1 changed files with 3 additions and 1 deletions
|
@ -77,7 +77,9 @@ class <%= controller_class_name %>Controller < ApplicationController
|
|||
<%- end -%>
|
||||
format.json { head :no_content }
|
||||
else
|
||||
<%- if options[:html] -%>format.html { render action: "edit" }<%- end -%>
|
||||
<%- if options[:html] -%>
|
||||
format.html { render action: "edit" }
|
||||
<%- end -%>
|
||||
format.json { render json: <%= "@#{orm_instance.errors}" %>, status: :unprocessable_entity }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue