All threads / How can I do drop down dependencies?

Ask A Question

Notifications

You’re not receiving notifications from this thread.

How can I do drop down dependencies?

Josh Cooper asked in Rails

First: Apologies if already addressed.

i have two situations where i need dropdown/select dependencies and wondering if anyone can help with a simple way of handling this using Rails, gem, mininal js.

  1. using Ancestry gem and parent/child setup
  2. using one to many association

i came across subdivision_select gem and like the simplicity of this.

@chris maybe a screencast on this?

Any help/direction is much appreciated

cheers
Josh

Not sure what you are asking. A way to "populate" a select tag with an associated model?

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 33,665+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.