Skip to content
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

Error while visiting sentinel paths #33

Open
nbondarenko opened this issue Feb 24, 2017 · 8 comments
Open

Error while visiting sentinel paths #33

nbondarenko opened this issue Feb 24, 2017 · 8 comments
Assignees

Comments

@nbondarenko
Copy link

Hi! I'm trying to use sentinel library. I've configured application using your configuration guide and sentinel_example project, but I'm getting errors when visiting paths like /login, /user/create and others provided by sentinel. Error looks this way: (UndefinedFunctionError) function :app.render/2 is undefined (module :app is not available). I will be very grateful for every suggestion.

@britton-jb
Copy link
Owner

That sounds familiar. I'll try to take a look at this shortly and let you know.

@lumenlunae
Copy link

There's something wrong with the Config.layout option for sure. The default should be "app.html" (at least that's what works for me here lumenlunae@2c47779 ) but also, setting my own layout value in my own config.exs doesn't seem to do anything for some reason.

@britton-jb
Copy link
Owner

Are you also setting the layout_view config @nbondarenko @lumenlunae ?

Looking at this today I can see it's not very explicit or clear that both need to be set.

@lumenlunae
Copy link

I did, to my own .LayoutView
It might just be my limited knowledge with Elixir, but for the life of me Sentinel wasn't reading my own options for layout_view and layout, and was only using its own defaults, even though I had mine set in config.exs

@britton-jb
Copy link
Owner

britton-jb commented Feb 26, 2017 via email

@nbondarenko
Copy link
Author

Thank you all for your feedbacks. Layout view in my config file was set as it was described in a guide. I've dropped users table and model and retried all steps of configuration and all things work now. The reason was the user model and table. This problems appears if user model has been predefined and users table has been created before.

@britton-jb
Copy link
Owner

britton-jb commented Feb 27, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
@lumenlunae @britton-jb @nbondarenko and others