Hello Adi,
thank you for this great guide.
Just a few issues,
Since I used Phoenix 1.3 I add to modify the schema created by the mix phx.gen.html …
From:
schema “products” do
field :name, :string
field :price, :integer
field :category_id, :string
To:
schema “products” do
field :name, :string
field :price, :integer
belongs_to :category, RummageExample.Sales.Category
But now I got error when trying to add use to the controller:
use Rummage.Ecto
* (UndefinedFunctionError) function Rummage.Ecto.__using__/1 is undefined or private
(the rummage was defined in mix.exs / deps)