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

bootstrap_devise_error_messages not working #68

Closed
julius-b opened this issue Nov 18, 2018 · 1 comment
Closed

bootstrap_devise_error_messages not working #68

julius-b opened this issue Nov 18, 2018 · 1 comment

Comments

@julius-b
Copy link

when creating the views with rails generate devise:views:bootstrap_templates, the newly generated file sessions/new.html.erb does not contain the error messages block (<%= bootstrap_devise_error_messages! %>) which is available in registrations/new.html.erb.

Therefore, when entering faulty data during login, the user isn't informed. The registration form does show the errors as expected.

I tried adding the block to the file, but it has no effect. I also followed the wiki entry about izitoast, but it doesn't work either. The only way I can see the errors is by using <p class="notice"><%= notice %></p> <p class="alert"><%= alert %></p>, but then it's not inside the bootstrap error message box.

@emcmanus
Copy link

emcmanus commented Jun 9, 2020

You'll want to restart your server after running the generator. I believe there is an initializer that checks for the presence of those views.

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

No branches or pull requests

3 participants