Skip to content

Administrate SelectField options being chached #101

@zaidhuda

Description

@zaidhuda
  • What were you trying to do?
    post_ids: SelectField.with_options(
      multiple: true,
      collection: Post.ids
    )
  • What did you end up with (logs, or, even better, example apps are great!)?

When I create a post, the select option does not change. It would exclude the new post id.
When I destroy a post, the select option does not change. It would include the old post id.

  • What versions are you running?
    • Rails 6.0.0
    • administrate git: 'https://github.com/thoughtbot/administrate'

ref thoughtbot/administrate#1466

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions