Hello, How to choose values based on the selected above?

There is a form in it to be a field for entering regions()
On the basis of them should show the cities of these regions in the
field
below()

I think it ajax
But I’m not experienced this
Can you recommend what to read for it or (halpers rails for this task)

P.S Thanks for wathing

you need to do that in javascript, I don’t think any part of Rails does
that for you.

check out
http://www.sanwebe.com/2013/05/select-box-change-dependent-options-dynamically

for a good explanation

there may be a rails gem or plugin that can help you, but I do not know
of what specifically for that purpose.

On Oct 8, 2014, at 9:40 AM, [email protected] wrote:

You received this message because you are subscribed to the Google G. “Ruby
on Rails: Talk” group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/48d47daf-b97c-403f-8618-a09c01758059%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jason Fleetwood-Boldt
[email protected]

All material Jason Fleetwood-Boldt 2014. Public conversations may be
turned into blog posts (original poster information will be made
anonymous). Email [email protected] with questions/concerns about
this.