Sha256: 8ca3398dc16df4fa10732b0ce594349d491731ea1160937d4804541c316f0d72
Contents?: true
Size: 467 Bytes
Versions: 3
Compression:
Stored size: 467 Bytes
Contents
def new @<%= singular_name %> = <%= class_name %>.new respond_to do |format| format.html # new.html.erb <%- unless options[:no_xml] -%> format.xml { render :xml => @<%= singular_name %>.to_xml(:except => [:id, :created_at, :updated_at]) } <%- end -%> <%- unless options[:no_json] -%> format.json { render :json => @<%= singular_name %>.to_json(:except => [:id, :created_at, :updated_at]) } <%- end -%> end end
Version data entries
3 entries across 3 versions & 1 rubygems