-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to properly render a template? #34
Comments
Sorry for the outdated docs. I'm working on getting those up to speed shortly.
That should get you going until a proper fix can be introduced. Let me know if you run into any problems with this. |
@rizafahmi Were you able to get things working? |
Nope. Still got an error: |
The calls to render should not contain the directory structure, which is why In your calls to render, |
I'm gonna take a go at this later tonight if thats ok with you. |
@vjustov Have at it if you have the time! 👍 |
Im working on it at #49. feel free to give any insight. |
@vjustov I'd be open to opening a gitter.im room. In fact, consider it done. Looking into your PR now. |
How to properly render a template? I want to render index.html.eex by using
render
. In the docs saysrender conn, "showing index controller"
. I did that but not working. I didrender conn, "main/index"
,render conn, "main/index.html"
andrender conn, "main/index.html.eex"
but all ended up errorFile.Error: could not read file lib/views/main/index
. Am I missing something?The text was updated successfully, but these errors were encountered: