All threads / Dynamic Select Fields in Rails with Hotwire Discussion

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Dynamic Select Fields in Rails with Hotwire Discussion

If I'm reading this error correctly does this mean the url value and param value are not being pulled from the data fields?

GET "/undefined?undefined=Head&target=muscle-table"

Reply

Lets say i have a form where a user can select something.

Is it also possible to use this method to render than depending on the selection different templates of a child form ?

Reply

Brilliant solution Chris! This is the cleanest lines of code I've ever seen for using stimulus dynamic select!

Reply

I love how you make it so generic in the end! 👌

Reply
Join the discussion

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

Join 53,130+ 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

    © 2021 GoRails, LLC. All rights reserved.