       Repo.insert(changeset)
 
       conn
-      |> put_flash(:info, "<%= alias %> created succesfully.")
+      |> put_flash(:info, "<%= alias %> created successfully.")
       |> redirect(to: <%= singular %>_path(conn, :index))
     else
       render conn, "new.html", changeset: changeset

    Repo.delete(<%= singular %>)

    conn
    |> put_flash(:info, "<%= alias %> deleted succesfully.")
    |> redirect(to: <%= singular %>_path(conn, :index))
  end
end

      Repo.update(changeset)

      conn
      |> put_flash(:info, "<%= alias %> updated successfully.")
      |> redirect(to: <%= singular %>_path(conn, :index))
    else
      render conn, "edit.html", <%= singular %>: <%= singular %>, changeset: changeset
