1
0
Fork 0
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:
Yehuda Katz 2012-12-22 23:05:39 -08:00
parent e738acd080
commit a4d21f764c

View file

@ -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