#model0 is undefined or private
20 messages · Page 1 of 1 (latest)
use PortfolioWeb, :model is what's causing the issue, check your PortfolioWeb module file, it probably doesn't contain such a function.
It's been a long time since Phoenix and ecto have used the term "model" is this a very old codebase?
I've been learning elixir from an older course dated back to 2017 which is why I used the term
I ended up adding it to the web.ex file, however, if you have a write up on what the recommended approach would be I'd be very grateful to read up on it
Just use Ecto.Schema
It’s not a good idea for your non-web module to reference web
…and model isn’t a thing
yeah I'd second that, just put that code into the schema file instead and leave it out of PortfolioWeb. And limit the imports to only what you actually need, importing Ecto itself seems a bit much
You should really use a newer course. That was 5 years ago
Lots has changed
I'd be happy to. I'm trying to spend as many of my after work hours trying to learn elixir / phx
If there's one you'd recommend I'm all ears.
Will do
Personally, I don’t learn as well with courses. I just read the docs
And build stuff
I like to start with just the language and build something.
Have you checked out the alchemist camp on YouTube? I see it recommended in #getting-started
Nope but just subscribed to the channel! Thx 🙂