We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug When using as: :tags, the current value is not selected.
as: :tags
Expected behavior When I go to edit a record the current values for in my list should be render.
Screenshots
Code
controller do def update committee = LegiscanModel::Committee.friendly.find(params[:id]) committee.people = LegiscanModel::Politician.where(people_id: params[:legiscan_model_committee][:people_ids]) committee.save super end end permit_params :name, :state_id, :slug, :people_ids, :committee_id form do |f| f.inputs do f.input :name, input_html: { disabled: true } f.input :slug, input_html: { disabled: true } f.input :people_ids, label: 'Members', as: :tags, collection: LegiscanModel::Politician.where(state_id: f.object.state_id).order(:last_name), fields: [:full_name] end f.actions end
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When using
as: :tags
, the current value is not selected.Expected behavior
When I go to edit a record the current values for in my list should be render.
Screenshots
show(with current values)
edit(values missing)
Code
The text was updated successfully, but these errors were encountered: