We've moved discussions to Discord

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
Chris Oliver
Check the Administrate docs: https://github.com/thoughtbot/administrate

Make sure you also added the type into the types array. 
Notifications
You’re not receiving notifications from this thread.