Sha256: 7564ff0556b5a157f412bec4e21437aa6cfce7a6affcbe69655c0eb8217068c1
Contents?: true
Size: 280 Bytes
Versions: 21
Compression:
Stored size: 280 Bytes
Contents
def create @<%= instance_name %> = <%= class_name %>.new(params[:<%= instance_name %>]) if @<%= instance_name %>.save redirect_to <%= items_url %>, :notice => "Successfully created <%= class_name.underscore.humanize.downcase %>." else render :new end end
Version data entries
21 entries across 21 versions & 2 rubygems