I'm trying to update the listing\_id of Photo but for some reason it won't save the id. I'm passing in an array of 3 or more image id's and then iterating over each one here is the code: 

```
 def create
    @listing.landlord = current_landlord
    if @listing.save
      params[:listing][:images].each do |image|
        Photo.find_by_id(image).listing_id = @listing.id
        @listing.save
      end
      render :show, :status => 200
    else
      render :status => 403, :json => {:errors => @listing.errors}
    end
  end

```

Any ideas to way the Photo isn't saving the Listing id?