我正在尝试使用Ecto,并且在验证changeset()函数中的数据时遇到了问题。 的Schema如下: defmodule Barakuda.TestData do
use Ecto.Schema
schema "test_data" do
field :username, :string
field :age, :integer
end
我有以下router.ex: scope "/api", MyAppWeb do
get "/activate", SubscriptionController, :create, as: :activate_account
end
scope "/", MyAppWeb do
get "/*path", AppController, :index
end
Subs