what if you have validations on the associated model?
in the model i have
ruby
defspot_name=(name)
self.spot = Spot.find_or_create_by_name(name, :address => name) if name.present?
end
and a geocoder like in episode #273 attached to spot.
when i have a spot_name that i cannot geocode i want the form to display the error but how do i do that?
what if you have validations on the associated model?
in the model i have
and a geocoder like in episode #273 attached to spot.
when i have a spot_name that i cannot geocode i want the form to display the error but how do i do that?