ruby-on-rails – Link rails dropdowns


How to exclude an item selected in the first list from the second list?

<%=, @city_select)  %>

<%=, @city_select)   %>


RoR is a backend, it does not know anything about what is happening in your front-end until you send this data to it. Ajax not needed here, Javascript needed here.

Scroll to Top