Ticket #8185: add_xml_schema_to_scaffold_resource.patch
| File add_xml_schema_to_scaffold_resource.patch, 493 bytes (added by Klondike, 2 years ago) |
|---|
-
controller.rb
old new 22 22 end 23 23 24 24 # GET /<%= table_name %>/new 25 # GET /<%= table_name %>/new.xml 25 26 def new 26 27 @<%= file_name %> = <%= class_name %>.new 28 29 respond_to do |format| 30 format.html # new.erb 31 format.xml { render :xml => @<%= file_name %>.to_xml } 32 end 27 33 end 28 34 29 35 # GET /<%= table_name %>/1;edit