From website to web app
This is a paid lesson.
Buy the course Discover Elixir & Phoenix
- Read all 22 lessons
- Lifetime access
You need a Ludu account in order to ask the instructor a question or post a comment.
It seems, plug Guardian.Plug.Pipeline, module: Messengyr.Guardian,
error_handler: MessengyrWeb.ChatController is needed in router.ex. Otherwise, it will give
error_handler not set in Guardian pipeline Error.
thanks :) added within the pipeline :browser and it works
Here the same, we use: MessengyrWeb.ChatView and MessengyrWeb, :view
Now we use MessengyrWeb.ChatController
And use MessengyrWeb, :controller
Now the correct is: MessengyrWeb.LayoutView
Thank you, works for me!
shouldn't this be <img src="<%= avatar(@conn) %>" /> (with doublequotes)?
@peter-marreck: Indeed, that would be more correct. It seems like it works without them too though. :)
Note for Rails veterans: The = before the if, else and end is necessary for some reason (in Rails it would not be since it's just logic) otherwise nothing outputs