Displaying 20 results from an estimated 2000 matches similar to: "save order from drag and drop"
2005 Jul 07
2
0.13 ajax sortable lists and acts_as_list
I''m trying to figure out a good way to get acts_as_list and the new
sortable lists to play nicely together, but they don''t seem like
they''re designed to mesh well. The ajax sortable lists post a
complete ordered list of ids back to the server after every change,
but acts_as_list is designed to deal with diff-like changes, rather
than reordering the whole list from
2005 Jul 13
2
A small question about dragging effect on sortables
Hello,
I''m implementing sortables in Rails and I can''t seem to get the
lovely effect from the Sortable Floats Demo on Thomas'' wonderful site:
http://script.aculo.us/drag-and-drop#sortable-floats-demo
Simply put, I can''t get the effect whereby you''re dragging the image.
When I have a vertical or horizontal constraint on a list, the effect
2005 Jul 12
8
Tip Sheet for AJAX
Hi all,
I''m making an Amy Hoy style tip sheet PDF for the Prototype and
Scriptaculous AJAX stuff, to be used with Rails. Are there other
resources you would suggest besides the websites themselves (the
previous thread about Highlight reminded me of this)? Is there a
particular focus that would be helpful for such a document? Preferred
fonts or colors?
I must say, once you get
2005 May 26
1
No response from Apache 2 / fcgi / rails...
Hello! I''m struggling here with getting Typo running on a Red Hat
server under Apache 2 / fcgi... Every time I try to load the public
home page, I get this in my error log:
[Thu May 26 00:20:52 2005] [error] [client 24.22.74.233] FastCGI:
comm with (dynamic) server "/home/httpd/vhosts/brigleb.com/httpdocs/
public/dispatch.fcgi" aborted: (first read) idle timeout (30 sec)
2005 Dec 07
3
Addressing a class, rather than an id?
Good day,
I''m trying to use the slider control to resize a pile of images on a
web page. Clever, huh. Bet cha didn''t think of that one!!! :)
But seriously. It seems I want to address a class, rather than the
individual id''s of the images. At this point, I''m getting some
results with something like this:
2006 Mar 22
5
FTP hangs Rails!
Hi! I''m running a Rails app on Apache/FCGI, with a single handler
process on the server.
At one point my application needs to FTP a bunch of files to a remote
server. When it starts doing this, the server apparently freezes and
doesn''t allow anyone else to do anything. Plus, after about twenty
seconds, my nice status page vanishes from the browser, even though
the
2005 Jul 12
6
Meta-question about the list
Question about the list in general: by default, it''s set up so that
replies go to the sender, rather than the list. However, on other
lists I usually chat on, replies by default generally go to the list.
This seems to encourage more discussion. Would it be a good idea to
change that default? Or am I just crazy.
Best,
Raymond
--
Raymond Brigleb, Needmore Designs
Website
2006 Apr 11
6
Google Base... in Rails?
Ok, so this is kinda out of the blue... but I''ve been looking at
Google Base and thinking that it''s got some really good ideas in it.
Especially the way you can create your own "type" of item with its own
custom attributes, like date range, location, number, text, etc. Kind
of like defining a database with a GUI, but not exactly.
It seems really interesting to me, from
2005 Jul 31
2
Central list of Rails gems?
Is there a centralized list of Rails gems somewhere? Or even just a
database of some kind of gems that can be useful to Rails apps, not
just specific to Rails?
-raymond
--
Raymond Brigleb, Creative Director
Needmore Designs -- The beautiful, usable web.
Website http://needmoredesigns.com/
Email ray-THGPwszTed5CpjqP0VxSwUEOCMrvLtNR@public.gmane.org
2006 Mar 30
15
Survey: Favored Rails Production Environment
We''re trying to set up a colocated server for deploying a Rails
application or three. Right now I''m undecided between a PC-based
server running FreeBSD and an Xserve running OS X. I''ve never
colocated before so I''m wondering if anyone has stories, tips, or
could say what their preferred OS is for running Rails.
I''m also wondering how performance of
2006 Apr 18
6
Linking one model to another
I have a User model and a Thing model. I want to link users with
things, so I have a migration that creates a permissions table with
user_id and thing_id. The migration works fine and gives me three
columns, I assume I need the permission''s ID so that I can delete it in
future.
Three questions come to mind though, which I have given thought but got
nowhere.
1) Does the
2006 May 19
9
[NEW SITE] psitsNOT
psitsNOT ("Photoshop it''s NOT") is an over-the-web image editing
application made with Rails, RMagick, and AJAX. It provides everything
you need to make a raw digital image look good on the web.
http://psitsnot.alevans.com
You''ll need an OpenID URL to log in.
Feedback is welcomed!
--Al Evans
--
Posted via http://www.ruby-forum.com/.
2005 Jul 20
3
examples of drag n drop
Sorry if this sounds cynical, ( i do love script.aculo.us scripts ) ,
but I am wondering if people know of some good real world
examples of uses of drag n drop and sortable lists.
such a cute script will likely be *ab*used as much as it is used.
obviously the point here is to use script.aculo.us to improve
the user interface rather than just have some k00l eFX.
e.g. the drag n drop instantly
2005 Sep 09
5
file_column: patched for imagemagick and validation
Hi all,
I patched file_column to add imagemagick transformations of uploaded
content. I added an options hash, and it takes the :magick and
:format keys. :magick is a string of imagemagick command line options
for convert (Reference:
http://www.imagemagick.org/script/convert.php). Format is an optional
extension for the finished image. If Imagemagick recognizes the
extension, then it will
2007 May 22
3
can I use acts_as_list with a has_many :through association
I''d like to be able to use a has_many :through association and treat
the associations as a list but I''m getting this error when I try an
use an acts_as_list method:
NoMethodError: undefined method `move_to_bottom''
I''m using edge rails r6786.
Here are my domain rules:
Activities are things students can do.
Units consists of a sequenced list of
2007 Nov 14
1
has_many_polymorphs and acts_as_list ?
First, BRAVO for this wonderful plugin: has_many_polymorphs ! Now my
problem:
4 models : Collection, Page, Fragment, Belonging (which is the join
table):
1 class Collection <
ActiveRecord::Base
2 has_many_polymorphs :elements,
3 :through => :belongings,
4 :from => [:pages, :fragments, :collections],
5 :as => :collector,
6 :parent_order =>
2006 Apr 01
3
acts_as_list with scope : position update problem?
Hello,
I''ve tried to set up a class with acts_as_list with a scope argument
that restricts a list to records with the same foreign key.
For example :
database :
CREATE TABLE `families` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '''',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
INSERT INTO
2006 Feb 16
1
HABTM -VS- belongs_to/has_many, for self-referential joins
Ok, David says on page 241 that sometimes a many-to-many relation with
attributes are better implemented as an actual model instead of using HABTM.
Well, I''ve got that situation and I can''t figure it out.
All of the examples in the book have HABTM examples between 2 different
tables, but I want to have a HABTM relation on 1 table with itself. (e.g.,
if I have a table Things,
2005 Sep 23
2
Sortables: which element moved?
Looking at the archives, people have asked this before, but I can''t find a
proper answer:
How do you get sortable_element to return the dragged (moved) element? I
know I can compare the list of elements before and after, but I need to know
exactly which element was moved. The problem with comparing the list before
and after is that if an element is dragged one element forward or
2010 Dec 23
6
Difference between rake test:units and individually running ruby -I test test/unit/something_test.rb ?
Here''s my issue: running ruby -I test test/unit/something_test.rb for
each of my unit tests works perfectly.
However, running rake test:units brings errors in all of them - some
object becomes nil for some reason.
Why might this be happening?
Specifics: the object that is successfully not nil when I run the unit
tests one-by-one but becomes nil when I do rake test:units is defined
like