0

We are using devise for our rails application. I have run the following commands to install and generate devise into the app.

rails generate devise:install

rails generate devise user

Now I want to generate the views for the User model at app/views/users/ instead of app/views/devise

Surya
  • 15,703
  • 3
  • 51
  • 74
Harsha M V
  • 54,075
  • 125
  • 354
  • 529
  • devise maps all its views to devise directory, leaving rails' convention onto the developer to follow. Here you'd need to create a users controller and inherit from devise controller to override that behavior. – Surya Dec 18 '14 at 07:15
  • when you run `rails generate devise:install` you will have a message how to generate custom views – Nithin Dec 18 '14 at 07:20
  • http://stackoverflow.com/a/14917262/2231236 – Nithin Dec 18 '14 at 07:20

1 Answers1

1
rails generate devise:views users
Mayur Shah
  • 3,344
  • 1
  • 22
  • 41
djadam
  • 649
  • 1
  • 4
  • 20