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