search for: photo1

Displaying 2 results from an estimated 2 matches for "photo1".

Did you mean: photo
2006 Aug 30
1
Single Table Inheritance with self-referential join
Please tell me if this train of thinking makes sense, I need help on solving this association model problem: I am doing an app that creates and manages stereoscopic images, one stereoscopic image is formed by two photos, say photo1 and photo2 The user uploads photo1 and then photo2 and gets a preview if he likes the preview he/she authorizes it and gets a final stereoscopic image All this images will be managed via file_column/RMagic plugins When the user uploads photo1 and photo2 this are placed into an order, (as when...
2006 Jul 18
2
newbie help re: loading data and relationships in migrations
...relationships defined: class Product < ActiveRecord::Base has_one :product_photo ... class ProductPhoto < ActiveRecord::Base belongs_to :product ... In my data migration file, I create a Product, then a ProductPhoto and try to link them: prod1 = Product.create(...) photo1 = ProductPhoto.create(...) -> has no reference to product_id prod1.product_photo = photo1 There are no errors after the rake db:migrate command, but examination of the table reveals the foreign key product_id to be NULL. Could someone give me a heads up on what I''m doing wrong, o...