Thanks for your reply DKM,

I have location_attributes listed in the users attr_accessable list and 
use attr_protected for the :locatable_id and :locatable_type in 
location.

Just to check that there are no attribute access issues i commented out 
attr_accessible and attr_protected's in the user and location models. It 
still did not set the select.

I believe it's soemthing to do with the select name generated from the 
fields_for.
<select name="user[location_attributes][country_id]" 
id="user_location_attributes_country_id">
.
.


but im not sure what.





-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to