Hey guys! I have an Album module with an Ecto schema. The schema has a
cover_url virtual field that depends on the
cover column to return the url for the cover.
I have this code that uses a function on the module to build the url. Now the issue is that album is not passed to the function. It raises an error instead stating:
variable "album" does not exist and is being expanded to "album()", please use parentheses to remove the ambiguity or change the variable name
The function that builds the url looks like this:
This stuff is so easy to do in other framework such as Laravel. I’m building my first big app in Elixir/Phoenix in part to learn the platform. I realize that this platform makes most hard things in other languages/tools easy and some easy things hard. Thanks for you help!