Sha256: 25bc615f07319bf3ec4d8a8332cb21e8313ae23dd8f6f8fb0c2eb0a0770b0110
Contents?: true
Size: 295 Bytes
Versions: 6
Compression:
Stored size: 295 Bytes
Contents
def create @<%= singular_name %> = <%= class_name %>.new(params[:<%= singular_name %>]) if @<%= singular_name %>.save redirect_to(<%= item_path('url') %>, :notice => "Successfully created <%= model_name.underscore.humanize.downcase %>.") else render :new end end
Version data entries
6 entries across 6 versions & 1 rubygems