Displaying 16 results from an estimated 16 matches similar to: "Association extension method"
2009 Jun 04
1
wrong number of arguments (1 for 0)
Hi,
I hope someone can help me because this is driving me crazy, I''ve
spent hours trying to track this down. I''m trying to convert a Rails
1.1 to Rails 2.3.2 and I''m getting the following error when trying to
save a many to many relationship. I''ve double checked all the
associations, I''ve used console to test my models and they all work
ok, I can do
2005 Oct 11
8
Drag & Drop probs
Hi,
I''m just trying out the possibilities of script.aculo.us / prototype
having two problems...
I have a draggable element with revert:false-property and two
dropzones. (The draggables are in a <td> and the dropzones are
<div>s if that is important.)
1. I want the draggable element to snap back to its original position
when it gets dropped anywhere out of a dropzone.
2.
2004 Nov 05
1
netapps vfiler
Hi,
Did anyone here tried to use rsync between a unix machine and a NetApps
Vfiler volume? I have strange case where it does create the folders on
the vfiler volume but does not copy the files. Command is something
like this:
rsync -va dropzone pushacc@prod:/launchpad
where,
* dropzone is the the folder which keeps source files and folders in
unix. This folder is owned by a unix account
2007 May 28
2
Rails, respond_to? over anonymous module (extend has_many).
Hello List,
I''m trying to generate examples for some list-helpers I have coded
which use in my projects.
Basically, the Playlist class uses one anonymous module in has_many
that acts as helper between acts_as_list and my desired API:
class Playlist < ActiveRecord::Base
# associations go here
has_many :playlist_items, :order => :position, :dependent => :destroy
has_many
2008 May 25
2
record will absolutely not save! so weird, please help.
I have a weird problem going on. All of sudden, records for a certain
model will not save with #save Please take a look at this:
>> p = Payment.new(:payment_reason_id => 1, :payment_method_id => 1, :date => Date.today, :amount => ''5.00'', :payable => Student.find(608))
=> #<Payment id: nil, school_id: nil, payment_reason_id: 1,
payment_method_id: 1,
2002 Feb 12
1
rsync error: received SIGUSR1 or SIGINT (code 20) at rsync.c(229)
Trying to rsync between win2k machines.
rsync version is 2.5.3pre (downloaded today)
This is the message after 368100 files have been checked:
rsync error: received SIGUSR1 or SIGINT (code 20) at rsync.c(229)
My cmdline is :
c:\sbin\rsync\rsync -az /cygdrive/d/Home
xxx@xxx.skelleftea.se::dropZone/GY/ba-disk01 --stats -v -P --timeout=84600
I have tried with both with and without -z (-az or -a)
2008 Nov 19
3
Overwriting / Decorating ActiveRecord association accessor
Hi,
I am trying to overwrite the accessor of a has_many association.
Basically my class looks like this:
class Person
has_many :emails
has_one :link, :class_name => ''PersonProxy''
def emails_with_link
link.emails + emails_without_link
end
alias_method_chain :emails, :link
end
Now that works fine if I only access the collection like
>>
2008 Feb 28
0
Sortable scroll offset
I am experiencing a problem with scroll when dragging items to my drop
area. I tried using the scroll option, looked through other forum
disscussions but I have not been able to find a solution.
I have a side by side layout where i drag elements from myTable into
dropZone. The workArea div has overflow: scroll enabled. My problem is
when the list becomes long and I have to scroll down to get to a
2008 Feb 15
1
Sortable limit number of elements
Hello,
Well, i need to limit the number of elements in a sortable. I new to
scriptaculo but i have lots of experiencie with javascript.
Since limit the number of elements is not supported by Sortable i
would like to implement, i already took a look at the Sortable class
in dragdrop.js and it looks like that onHover and onEmptyHover deal
with the update of the UI, however I''m not unable
2007 Jan 31
1
help with extensions
I am working with extensions to has_many associations, and I want to create
a finder method that is conditional on the attributes of the object whose
association I''m working with.
So, to use the example from the Agile Web Development: the authors show on
pg 340 in the second edition how to pass an argument to a finder method. But
I want to know if it''s possible to instead have
2005 Nov 22
1
reverteffect - how to deal with this?
Hello everyone.
Does anyone know how to deal with this? i try to change the idea of works revereffect:function but for know unsuccesfull. In my project i have to use dragable with revert: true but i don''t want have revereffect. Maybe any idea?
Grzegorz Ślusarek
----------------------------------------------------
HARRY POTTER I CZARA OGNIA - PREMIERA KINOWA 25 LISTOPADA:
Wejdź:
2006 Oct 06
0
Drag and drop
Hi,
I''d like to permit only one picture in the dropzone because althoug I
fixed the size of the div, this div resizes automatically to accept
more than one item ...
Thanks a lot !
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to
2008 May 14
0
draggable gets offset on scrolling when its container is position:fixed
hello,
my draggables are located in a DIV which is position:fixed ... so my
"cart" stays always at the bottom of the page. when the page gets a
vertical scrollbar now, then the droppables zone gets an offset of
exactly the scroll ...
the same topic can be found here:
Having problems with "position:fixed; bottom:0%;" and dropzone div''s
Optionen
2010 Feb 11
3
Parameterized ActiveRecord Associations: Any such thing?
Hi list, how are ya?
So, my current project is just begging for the ability to have
parameterized associations in my ActiveRecord classes. Basically I
need something that is a cross between named scopes and standard
associations (has_many specifically).
I''m wondering if such a thing exists or, if not, if anyone else has an
elegant, equivalent solution?
Example:
class Sprocket <
2007 Aug 03
0
acts_as_paranoid and Association Extensions (has_one troubles)
Hi... Isn''t there a proper way or hack/workaround for the following?
* For the example with unfortunate disabilities.. look below,,,
Usage of has_* (associationmethods) do {def with_deleted
AccociatedModel#with_scope} {Paranoid''s#find_with_deleted}...
The has_one associations give me a nil object when invoking it with
Model.association_OBJECT.with_deleted. Has_many does like
2006 Jun 24
6
Few questions
I apologize if these questions are not relevant to Scriptaculous. I
just want to get a general idea if I can acomplish some or all of
these things with the framework, and then what (if any) I''ll need to
do outside just using javascript.
For now, I have 2 column layout. On the right I want a form palette
where form elements can be dragged to the left column. I have a form
inside the