Hello,
I have been reading the book Programming Phoenix and it seems that somethings have changed since this book was written, particularly everything. I had to change some code (especially the nomenclature of different modules) in order to get things working. Up until now I have managed to do so, but now I cant.
I am stuck at the beginning of the chapter about Ecto. So I am supposed to create a user schema and generate a migration. the code in the book is:
defmodule Rumbl.User do
use Rumbl.Web, :model
schema "users" do
....
end
end
So with the new nomeclature it would be RumblWeb. When I try to create the migration mix tells me that there is no such ting as RumblWeb.model. He is unfortunately right . In the book they show that web.ex should contain the model definition but it does not. Only : controller, view, router and channel are defined. What should I do?
thanks.
Eitan