form_for and ledermann rails-settings
I want to make a form for ledermann rails-settings , in this question: Creating form for rails-setting , there is a solution, but it only works with current_user.settings(:email) , and i have other user preferences as well: current_user.settings(:detail) and current_user.settings(:preferences) . How can I change rails_settings_setting_object to the exact name of my settings? I now have: <%= form_for(resource, as: resource_name, url: edit_registration_path(resource_name), html: { method: :put }) do |form| %> <%= f.fields_for current_user.settings(:detail) do |fields| %> <%= fields.label :phone,