ruby - Render Custom views instead of default Devise views- Rails -


i have changed views generated devise gem rails keeps rendering file devise's gem file path.

rendered /users/jeremy/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/devise-3.5.1/app/views/devise/shared/_links.html.erb

p/s - i've changed config.scoped_views true

overriding default devise’s views simple , straight forward, need generate views in our app/views folder following single command.

rails g devise:views 

the following views generated.

app/views/devise/confirmations app/views/devise/mailer app/views/devise/passwords app/views/devise/registrations app/views/devise/sessions app/views/devise/shared app/views/devise/unlocks 

no other changes necessary. or if have done it,you need move folders inside app/views/devise


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -