Displaying 3 results from an estimated 3 matches for "bbbs".
Did you mean:
bbb
2009 Aug 06
2
duplicate model object with associations ?
class Patient < AR::Base
has_many :aaas
has_many :bbbs ,:through=>:aaas
end
class Aaa < AR::Base
has_many :bbbs
end
-------
i want like this
@patient=Patient.find(id)
@new_patient=@patient.duplicate
now the
@new_patient should have their own copy of patient,aaas,bbbs (new
records in corresponding tables)
there is one options is that
we can c...
2007 Dec 22
1
Ajax.Updater and JavaScript functions
Hello all,
I have a script that uses a Ajax.Updater call to update the contents
of a DIV. The code being inserted includes a javascript function,
which is "called" by onClick event elsewhere in the HTML.
The page initially works fine in that the DIV gets the right content,
the Javascript inserted works fine.
The problem I have is that if I call the Ajax.Updater again then the
2007 Jan 26
3
Newbie question.
Sorry for my ignoreance I''m kind of new to this....
I have a requirement for a page that essentially consists of three
"DIVS".
DIV1 - This is static, it has a bunch of links that initiate a AJAX
request to populate DIV2
DIV2 - Populated as a result of a request initiated from DIV1.
- This needs to have further links that will initiate a AJAX
request to populate DIV3.