Displaying 6 results from an estimated 6 matches for "acts_as_versioned_association".
2006 Jun 08
0
acts_as_versioned_association plugin
...echnoweenie, I''ve
written a small plugin which also stores versions of associations.
It''s early and experimental at the moment, but does work.
For example:
class Article < ActiveRecord::Base
has_many :images
has_and_belongs_to_many :categories
acts_as_versioned
acts_as_versioned_association :images
acts_as_versioned_association :categories
end
So now the Article model is versioned as usual, but also the associated
images and categories are saved with each version too.
There''s more on my blog post, and feedback would be very welcome.
http://livsey.org/articles/2006/06/0...
2007 Aug 27
0
how to use acts_as_versioned_association
Hello,
I have been looking for documentation for acts_as_versioned_association
and can''t really find any. I have acts_as_versioned_working properly but
want to change to acts_as_versioned_association. Do I need to create a
3rd table to use as a reference or is it all done behind the scenes and
all I need to do is add the plug-in and:
acts_as_versioned
acts_as_versio...
2006 Aug 13
0
Major update to acts_as_versioned_association
I''ve spent the weekend giving my acts_as_versioned_association (or
version_association for short now!) some much needed attention.
Unit tests have gone from a shameful 150 lines to well over 700 now -
around 1:3.5 code to test ratio. There''s still probably a lot which
needs testing, but it should be a lot better now.
It''s a fairly major u...
2006 Jun 13
9
act_as_versioned and join tables?
Greetings!
I''m attempting to use the act_as_versioned plugin to provide versioning
functionality for my rails app, but can''t think my way through this:
How can you use act_as_versioned to perform versioning on a HABTM join
table? It is easy to see how to do so for join models (:has_many
:through) but not so for the join table.
I want to use act_as_versioned to maintain
2006 Jul 26
1
AuditTrail in Rails
Hello there,
I need to build an audit trail system for an application. So far I have
been looking at acts_as_versioned and acts_as_versioned_association
plugins. I am having troubles getting the second one to work.
Any how, do you have any suggestions about how to build a robust audit
trail?
Thanks,
Roland
--
Posted via http://www.ruby-forum.com/.
2006 Dec 05
7
Dynamic # of Attributes for a Model (key/val table) Get/Set?
I''m working on a simple product catalog. Products have user defined
attributes, such as: color, size, weight. More attributes can be added
at any time. Since these attributes are not known ahead of time, they
cannot be created as columns.
My table structure (simplified):
products
--------
id
name
attrs
--------
id
name
product_attrs
--------
id
attr_id
value
And some sample code:
##