def create @<%= instance_name %> = <%= model_name %>.new(params[:<%= instance_name %>]) if @<%= instance_name %>.save redirect_to <%= item_url %>, :notice => "Successfully created <%= model_name.underscore.humanize.downcase %>." else render :new end end