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

Reply

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

Reply
Join the discussion
Create an account Log in

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

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

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

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

    © 2024 GoRails, LLC. All rights reserved.