Well I Have this models Localization has_many :event
Event belongs_to :localization in the view events/new.html.erb <% f.fields_for :localization do |L| %> <%= l.text_field :country %> <%= l.text_field :state %> <%= l.text_field :city %> <% end %> the events controller is ust saving the event model. But when I submit the page I get "Localization expected, got HashWithIndifferentAccess" I tried to modify the controller in many ways, but this apper to be happening before arrive in the controller. By the way, I will use this space also to ask you if there is a better way to associate an event with an location making easy to reuse the same location for different events and other models I will have? Thank you --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---