Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Automatically underscore and pluralize scoped views generator #3792
This fixes issue #3790.
Example of previous functionality. This basically just doesn't match up with what Devise expects when rendering the views:
rails g devise AdminUser rails g devise:views AdminUser # incorrectly generates the folder name => create app/views/AdminUser/shared
When rendering the scoped views, Devise will always look for the underscored and pluralized folder name, so this trips up a few people.
rails g devise AdminUser rails g devise:views AdminUser # correctly underscores and pluralizes the scope => create app/views/admin_users/shared