Howto add new field to dashboards/user
I would like to add a new field to dashboards/user for editing. I did the following: The new field does not appear in 'new and 'edit' form
Did I miss any anything ?
David
app/dashboards/user_dashboard.rb
...
# FORM_ATTRIBUTES
# an array of attributes that will be displayed
# on the model's form (`new` and `edit`) pages.
FORM_ATTRIBUTES = [
:name,
:email,
:password,
:password_confirmation,
:admin,
:subscription_expiry_date, # Added new field
:terms_of_service
].freeze
.... etc
Did I miss any anything ?
David
app/dashboards/user_dashboard.rb
...
# FORM_ATTRIBUTES
# an array of attributes that will be displayed
# on the model's form (`new` and `edit`) pages.
FORM_ATTRIBUTES = [
:name,
:email,
:password,
:password_confirmation,
:admin,
:subscription_expiry_date, # Added new field
:terms_of_service
].freeze
.... etc
Notifications
You’re not receiving notifications from this thread.