# Dynamic Select Forms problem - using the Related Select Forms plugin

**URL:** <https://www.ruby-forum.com/t/dynamic-select-forms-problem-using-the-related-select-forms-plugin/145207>\
**Category:** Rails\
**Created:** [August 6, 2008, 8:38pm UTC](https://www.ruby-forum.com/t/dynamic-select-forms-problem-using-the-related-select-forms-plugin/145207 "2008-08-06T20:38:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![naevity](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e9a140/32.png) [@naevity](https://www.ruby-forum.com/u/naevity)\
**Post date:** [August 6, 2008, 8:38pm UTC](https://www.ruby-forum.com/t/dynamic-select-forms-problem-using-the-related-select-forms-plugin/145207/1 "2008-08-06T20:38:16Z")

</div>

I’ve got a webapp that allows people to add locations. I’m trying to  
add international support, so I’m restructuring my add location form.

I need for users to select a country, and then have the area auto  
populate with results (i.e. pick US, get states, pick Canada, get  
territories).

I’ve installed the Related Select Forms plugin from here:  
[http://dvisionfactory.googlecode.com/svn/rails/plugins/related\_select\_forms/](http://dvisionfactory.googlecode.com/svn/rails/plugins/related_select_forms/)

This is where my problems begin

I can get the drop down menus to work fine, if I pick US, i get  
states. However, when I add the “form.” code to the collection select,  
I get this error message:

undefined method `merge’ for :name:Symbol

if I take off the form. it loads fine, but when I submit the location,  
neither country or state gets saved.

This is the code I’m using:

\<% form for :location do |form| %\>

\<%= form.collection\_select(:country, :id,  
Country.find(:all), :id, :name, :include\_blank =\> true) %\>

\<%= submit\_tag ‘save’, :class =\> “submit” %\>

Is this plugin just not able to work with form\_for?
