Comments

Saw Thinkar Nay Htoo

function nil.email/0 is undefined or privateI am getting this error. Is it due to the user id conflict in the database?

profile/avatar/default
Andreas

... and this is now xxx_create_room_users.exs

profile/avatar/default
Andreas

this is now xxx_create_messages.exs

profile/avatar/default
Andreas

For Safari there's JSONView: https://safari-extensions.apple.com/details/?id=com.dcrousso.jsonview-safari-Q5M4T22BE9

Robert Boone

Line 20 has an extra }

Tristan Edwards

@robertboone: Thanks!

profile/avatar/default
Ju Michot

me = User |> Ecto.Query.first |> Repo.one

profile/avatar/default
Ju Michot

I had few lines in my db and Repo.one was throwing an error

profile/avatar/default
Vasileios Ntarlagiannis

Is it "render/3" or "render/2"? Function "render" seems to get two arguments in the code below.

Tristan Edwards

@bdarla: You're right, it should be render/2, which gets called by render/3 in our controller. I've updated the code now!