search for: propertyimage

Displaying 1 result from an estimated 1 matches for "propertyimage".

Did you mean: property_image
2006 Aug 26
3
order of saving/validating
...le = @property.property_profile = PropertyProfile.new(params[:property_profile]) params[:property_image].each do |file_id, imageFile| file_id = file_id.to_i if file_id >= 1 and file_id <= 3 unless imageFile["filename"].nil? @property_image = PropertyImage.new(imageFile) @property.property_images << @property_image end end end @property.save! render :text => ''saved'' rescue ActiveRecord::RecordInvalid render :text => ''not saved'' end The problem i...