In your previous post you said this:
"a business can only have one address but an address can have one or 
many businesses"

Your models are then set up wrong. They should be:
class Business
  belongs_to :address

class Address
  has_many :businesses


A tip:
validates_presence_of :street_name
validates_presence_of :city
validates_presence_of :county
validates_presence_of :postcode

^ can be reduced to this:
validates_presence_of :street_name, :city, :county, :postcode
-- 
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 rubyonrails-t...@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.

Reply via email to