Reputation: 319
Devise works. I can login and log out, but there are no views in the my project. There is no app/views/devise
folder. When I used rails g devise:views
nothing appeared. How is Devise even working if there is no html, and how can I get these views to display in my project so I can edit them?
Upvotes: 2
Views: 2008
Reputation: 725
If files are not added, the files added into your gem
folder and Devise
will use them, but when you run the command, the created folder will just overwrite them.
If rails g devise:views
still not working for you, one easy way to do this instead of trying to find what was the issue with the gem
or Terminal is to just move them yourself.
Here you have the files Devise views, just copy paste them into your folder and you will be good.
Upvotes: 5
Reputation: 4427
Go to the application root directory and run following command to get views of devise:
rails g devise:views
Upvotes: 4
Reputation: 666
I read on the documentation that you have to put this line in config/initializers/devise.rb
config.scoped_views = true
you will have access to the file for sessions, and you can do too :
rails generate devise:views users
to have access to user files
You should take a look : https://github.com/plataformatec/devise
Hope that help
Upvotes: 1