search for: productimages

Displaying 5 results from an estimated 5 matches for "productimages".

Did you mean: productimage
2006 Aug 14
1
Relationship not saving
Hi All, I have a one to many relationship between images and gifts (one image can be assigned to multiple gifts): class ProductImage < ActiveRecord::Base has_many :gifts ... class Gift < ActiveRecord::Base belongs_to :product_image ... I''m trying to associate an image with a gift, and for the life of me ActiveRecord will not associate them. Here is some test code and the
2006 Jun 28
1
sortable lists, database update
Hi, I have some images and I want to be able to drag them into the order I want and have the database updated accordingly. I have an unordered list elsewhere in the application that works well, but for the images I cant get it working. In my controller I have: def updateorder params[:images].each_with_index { |id,idx| ProductImage.update(id, :display_order => idx) } render :text
2007 Sep 18
2
Making attachment_fu polymorphic
I am working on a small model mixin called attachment_kung to make attachment_fu polymorphic, so you no longer need a different table and Model class for every associated attachment (Productimage, Ad_doc, etc). All you really need is one model and table to handel all your attachments - in some cases, anyway. I have the code working, but have run into one small hitch that I can''t seem to
2006 Apr 08
4
New UPS protocol choice - Dynamix
Gidday all - I'm a new user to nut. I've got some cheap powerpal UPSs working fairly well. However I also have a new Dynamix UPS-1700D and an old Powercom KIN-1700 something unit that I cannot make work right. The best method I've found is "trial and error" which sounds a bit last-resort. Is there any better way to find out what protocol is used? -- Criggie
2008 May 06
11
I need storage server advice
Hi: I need advice on implementing a storage server. I really do not have the $ to spend for a Dell iSCSI storage divice and I am thinking trunning CentOS 5.x with ftp or FreeNAS. Here is what I am looking at and concerned about. Situation: My current storage needs are approximately 1.5 TB annually. This will increase to about 3.5 TB annually over the next 5 years (rough est.). This box