similar to: sortable lists, database update

Displaying 20 results from an estimated 100 matches similar to: "sortable lists, database update"

2006 Jul 28
2
has_many :through with :order column on the join model
I have a model like so class Product < ActiveRecord::Base has_many :image_links, :order => :position has_many :product_images, :order => ''image_links.position'', :through => :image_links end The problem is that :order clause just gets ignored. How do you server records in a specific order when the order column is on the join model?
2006 Apr 14
1
Problems using Sortable with an onUpdate callback
Hi all: I''m using sortable (very cool stuff!) on a series of divs with an onUpdate callback. Everything appears to work alright until I try to pass a parameter to my callback function like this: Sortable.create( ''page_33'', { tag: ''div'', onUpdate: updateOrder(''page_33'') } ); When I pass that parameter to the
2007 Jul 19
1
Storing order of sortable objects in RoR
I have two sortable lists that you can drag and drop to and from. Each object in the lists have a position field in the object''s table. I want to be able to update the position in the database automagically once a user has sorted the list. I can drag and drop just fine but I am not able to store the new positions in the database. I am trying to use Ajax.request in the onUpdate callback
2006 Jun 13
1
Element.remove parent div
Hi all, Currently I am using Element.remove like so: <div class="blurb" id="drag_1"> <a onclick="Element.remove(''drag_1'');" class="remove"></a> </div> However I would like to just create a function since I''ll be removing multiple DIVs and updating the sortable order. I just can''t get some version
2006 Jan 05
1
sortable_element not recognizing newly added <li> elements
I have a user defined list of items. Using the sortable_element function, I can manipulate the ordering of this list fine by dragging each component around. When I dynamically add another <li> item to this list, the newly added item is _not_ "draggable" like its other siblings. Using the sortable_element function, how do I make it aware of newly added list items? Here is my
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
2007 Feb 10
0
email attachment is not sending properly
hi friends, i m trying to send attachment with my mail. its an image file(.jpeg). but when i check my inbox it shows me image file as binary contents in tha mail itself. its not showing me an attachment. please help me. code in my model is: class MyMailer < ActionMailer::Base def sent(msg) @subject = "Abc here...!" @recipients = "xx-GVlOpdXsZis@public.gmane.org"
2008 Aug 25
2
maths not working (can't get this)
I''ve got a few problems with this...Hopefully it''s cleaer what I''m trying to do (work out and display two prices, one discounted / one full). Be grateful for answers... The total price and discounted price are not calculated correctly and the duration is not coming through to the output page. --------------- class Course < ActiveRecord::Base has_one :enquiry
2008 May 09
0
Attachment_Fu : how to remove thumbnails only and regenerate
hello guys i am using attachment_fu for product images i have hundreds of products and their images with thumbnails :thumbnails => { :thumb => ''100x100>'' } now we have decided to have thumbnails of size 50x50> only. how do i destroy the existing thumbnails for images and regenerate the new thumbnails i shud be doing something like this product_images.find(:all)
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
2013 Aug 29
1
[LLVMdev] COFF.h and windows.h conflict
The odds of #define _WINNT_H working are incredibly slim :) You can't include the separate headers (winbase.h etc), you have to just include windows.h Windows defines IMAGE_* whether we like it or not, we can't stop it doing it, so the only reasonable solution is to change LLVM to have it's own set of constant names. Nick Kledzik wrote: > In the Windows SDK headers, is the
2013 Aug 28
3
[LLVMdev] COFF.h and windows.h conflict
Hello, I noticed that if include\llvm\Support is included alongside Windows.h, there will be many define conflict leading to compilation errors, such as: COFF.h (enum): enum MachineTypes { IMAGE_FILE_MACHINE_UNKNOWN = 0x0, ... }; and winnt.h (same but define): #define IMAGE_FILE_MACHINE_UNKNOWN 0 Of course I could try to avoid to include both (but it's rather difficult and would require
2013 Aug 29
0
[LLVMdev] COFF.h and windows.h conflict
In the Windows SDK headers, is the IMAGE_* defines in a separate file (e.g. winint.h)? Does the file have a guard against multiple inclusion? If so (and the guard was named _WINNT_H_), perhaps you can do something like: #define _WINNT_H_ #include <windows.h> So you would get everything except those file format defines. Of course, this would fail if other parts of the windows header rely
2013 Aug 28
2
[LLVMdev] COFF.h and windows.h conflict
Reid Kleckner <rnk at google.com> writes: > IMO the fact that it uses the standard names from the COFF > documentation is a feature, not a bug. *defining* (not *using*) symbols already defined on a platform header is definitely a bug.
2013 Aug 28
0
[LLVMdev] COFF.h and windows.h conflict
On Wed, Aug 28, 2013 at 2:43 AM, Óscar Fuentes <ofv at wanadoo.es> wrote: > Reid Kleckner <rnk at google.com> writes: > > > IMO the fact that it uses the standard names from the COFF > > documentation is a feature, not a bug. > > *defining* (not *using*) symbols already defined on a platform header is > definitely a bug. We have to provide definitions so
2013 Aug 28
0
[LLVMdev] COFF.h and windows.h conflict
IMO the fact that it uses the standard names from the COFF documentation is a feature, not a bug. The elf and macho headers in the same directory use the standard enumeration names, correct? On Tue, Aug 27, 2013 at 5:41 PM, Virgile Bello <virgile.bello at gmail.com>wrote: > Hello, > > I noticed that if include\llvm\Support is included alongside Windows.h, > there will be many
2013 Aug 29
3
[LLVMdev] COFF.h and windows.h conflict
It was happening in a few files using COFF.h in LLDB for the windows branch (Windows.h is required for some typedef over Mutex, thread, socket, etc...). As said before, I am currently checking if it could be avoided (probably some refactoring will be needed). However I was wondering if it might not be easier to just avoid this clash at all by avoiding it in LLVM. Alternatively I could #undef
2018 Aug 06
2
Back to Xfce
On 08/06/2018 11:51 AM, Tony Schreiner wrote: > On Mon, Aug 6, 2018 at 11:33 AM Robert Moskowitz <rgm at htt-consult.com> > wrote: > >> >> On 08/06/2018 11:11 AM, Tony Schreiner wrote: >>> On Mon, Aug 6, 2018 at 10:55 AM Robert Moskowitz <rgm at htt-consult.com> >>> wrote: >>> >>>> Nicolas, >>>> >>>>
2006 Apr 26
3
My GD2 is not working
I installed GD2 1.0/1.1, but they are both not working, does anyone knows why? Great Thanks! With GD 1.0 I got: ======================================================== RuntimeError unknown symbol "gdImageSquareToCircle" RAILS_ROOT: /home/virtual/site1/fst/var/www/html/imodesite/public/../config/.. Application Trace | Framework Trace | Full Trace
2006 Jun 22
0
sortable list doesn''t work on production server
I have a sortable list in one of my views, using the sortable example from the recipes book. The sorting works great on my mac. When I throw it on the server for testing it doesn''t save the display order. I cracked open the log file and see that it''s not even returning the id''s like it should: Parameters: {"action"=>"sort",