rails g draft:devise driver first_name last_name BUT if there's already a model named Driver, it should just fail with a descriptive error message; it should NOT generate an additional migration to add Devise columns, the way that the default devise generator does.
Set config.scoped_views = true in config/initializers/devise.rb
should:
rails g draft:devise driver first_name last_name
BUT if there's already a model namedDriver
, it should just fail with a descriptive error message; it should NOT generate an additional migration to add Devise columns, the way that the default devise generator does.config.scoped_views = true
inconfig/initializers/devise.rb
form_for
with raw html (e.g.name="driver[first_name]"