yeah i tried it with pin, and the error looks like this:
warning: variable "r" does not exist and is being expanded to "r()", please use parentheses to
remove the ambiguity or change the variable name
lib/userteam1_web/controllers/recording_controller.ex:11
warning: variable "r" does not exist and is being expanded to "r()", please use parentheses to
remove the ambiguity or change the variable name
lib/userteam1_web/controllers/recording_controller.ex:12
== Compilation error in file lib/userteam1_web/controllers/recording_controller.ex ==
** (CompileError) lib/userteam1_web/controllers/recording_controller.ex:12: cannot use ^user.id() outside of match clauses
(stdlib) lists.erl:1354: :lists.mapfoldl/3
(stdlib) lists.erl:1355: :lists.mapfoldl/3
(stdlib) lists.erl:1354: :lists.mapfoldl/3
(stdlib) lists.erl:1355: :lists.mapfoldl/3
(stdlib) lists.erl:1354: :lists.mapfoldl/3
(stdlib) lists.erl:1355: :lists.mapfoldl/3
ok got another error, when I am trying to use the result of that query, it logs it out niely, but when i want to send it back from my view like this: recording_list: recording_list
then it gives an error:
(Poison.EncodeError) unable to encode value: {nil, "recordings"}
(poison) lib/poison/encoder.ex:383: Poison.Encoder.Any.encode/2
(poison) lib/poison/encoder.ex:227: anonymous fn/4 in Poison.Encoder.Map.encode/3
(poison) lib/poison/encoder.ex:228: Poison.Encoder.Map."-encode/3-lists^foldl/2-0-"/3