mswysocki / Madison-Student-Apartment-Finder

4 stars 1 forks source link

Add easy way to associate landlord with listing #37

Open aeggum opened 12 years ago

aeggum commented 12 years ago

It should be able to be done both ways. This is a little more tricky but is important for obvious reasons.

aeggum commented 12 years ago

Oh, if you're working locally and want to associate a landlord with a listing, the way to do it is in the console, using the update_attributes(:landlord_id => xxx) command for a listing, assuming you have a landlord created. To create one you can do it in the console or on the website at /landlords/new.

aeggum commented 12 years ago

We've added the ability to associate a new listing with a landlord.
We should decide if we want to make landlord information required or not.

The other end of the association may be a little trickier.