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 both a change record for the database and as a method to maintain snapshots of the database at particular points in time. It is possible that the records associated via the join table may be associated in one snapshot, not associated in a later snapshot, and related again in a still later snapshot. Any help with this issue would be greatly appreciated. David. -- Posted via http://www.ruby-forum.com/.
On 6/13/06, David Willis <dawillis@gmail.com> wrote:> 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 both a change record for the > database and as a method to maintain snapshots of the database at > particular points in time. It is possible that the records associated > via the join table may be associated in one snapshot, not associated in > a later snapshot, and related again in a still later snapshot. > > Any help with this issue would be greatly appreciated. > > David.acts_as_versioned doesn''t even attempt to do this. Try this: http://livsey.org/articles/2006/06/08/acts_as_versioned_association-plugin -- Rick Olson http://techno-weenie.net
Rick Olson wrote:> On 6/13/06, David Willis <dawillis@gmail.com> wrote: >> database and as a method to maintain snapshots of the database at >> particular points in time. It is possible that the records associated >> via the join table may be associated in one snapshot, not associated in >> a later snapshot, and related again in a still later snapshot. >> >> Any help with this issue would be greatly appreciated. >> >> David. > > acts_as_versioned doesn''t even attempt to do this. Try this: > http://livsey.org/articles/2006/06/08/acts_as_versioned_association-pluginThanks! I''ll take a look at it. David. -- Posted via http://www.ruby-forum.com/.
David Willis wrote:> Rick Olson wrote: >> On 6/13/06, David Willis <dawillis@gmail.com> wrote: >>> database and as a method to maintain snapshots of the database at >>> particular points in time. It is possible that the records associated >>> via the join table may be associated in one snapshot, not associated in >>> a later snapshot, and related again in a still later snapshot. >>> >>> Any help with this issue would be greatly appreciated. >>> >>> David. >> acts_as_versioned doesn''t even attempt to do this. Try this: >> http://livsey.org/articles/2006/06/08/acts_as_versioned_association-plugin > > Thanks! I''ll take a look at it. > > David. >Drop me a line if you need any help with it as documentation is non-existant at the moment! I''m working on that along with making it generally easier and more configurable over the next few days. -- R.Livsey http://livsey.org
Steven Talcott Smith
2006-Jun-13 17:27 UTC
[Rails] Re: Re: act_as_versioned and join tables?
Richard Livsey wrote:> David Willis wrote: >>> acts_as_versioned doesn''t even attempt to do this. Try this: >>> http://livsey.org/articles/2006/06/08/acts_as_versioned_association-plugin >> >> Thanks! I''ll take a look at it. >> >> David. >> > > Drop me a line if you need any help with it as documentation is > non-existant at the moment! I''m working on that along with making it > generally easier and more configurable over the next few days.I too would like to use this. Being relatively new -- how do I install this with the "gem install" command? acts_as_versioned was magically recognized. Steven -- Posted via http://www.ruby-forum.com/.
Steven Talcott Smith wrote:> Richard Livsey wrote: >> David Willis wrote: >>>> acts_as_versioned doesn''t even attempt to do this. Try this: >>>> http://livsey.org/articles/2006/06/08/acts_as_versioned_association-plugin >>> Thanks! I''ll take a look at it. >>> >>> David. >>> >> Drop me a line if you need any help with it as documentation is >> non-existant at the moment! I''m working on that along with making it >> generally easier and more configurable over the next few days. > > I too would like to use this. Being relatively new -- how do I install > this with the "gem install" command? > > acts_as_versioned was magically recognized. > > Steven >It''s just in the SVN repository at the moment, there''s no GEM. You can either check it out of the repository and put it in the plugins folder, or use svn:externals to do that for you if your project is under subversion. -- R.Livsey http://livsey.org
This is like dreams coming true..... acts_as_versioned_association On 6/13/06, Steven Talcott Smith <steve@talcottsystems.com> wrote:> > Richard Livsey wrote: > > David Willis wrote: > >>> acts_as_versioned doesn''t even attempt to do this. Try this: > >>> > http://livsey.org/articles/2006/06/08/acts_as_versioned_association-plugin > >> > >> Thanks! I''ll take a look at it. > >> > >> David. > >> > > > > Drop me a line if you need any help with it as documentation is > > non-existant at the moment! I''m working on that along with making it > > generally easier and more configurable over the next few days. > > I too would like to use this. Being relatively new -- how do I install > this with the "gem install" command? > > acts_as_versioned was magically recognized. > > Steven > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Never be afraid to try something new. Remember, amateurs built the ark; professionals built the Titanic! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060613/64af023f/attachment.html
Steven Talcott Smith
2006-Jun-13 20:44 UTC
[Rails] Re: Re: Re: act_as_versioned and join tables?
Richard Livsey wrote:> It''s just in the SVN repository at the moment, there''s no GEM. > > You can either check it out of the repository and put it in the plugins > folder, or use svn:externals to do that for you if your project is under > subversion.Thanks - I think this is going to get rid of a ton of CRUD from my old app... Steven -- Posted via http://www.ruby-forum.com/.
> I too would like to use this. Being relatively new -- how do I install > this with the "gem install" command? > > acts_as_versioned was magically recognized. > > StevenThe gem version is old, you should use the rails plugin. I actually released that before rails had plugins. -- Rick Olson http://techno-weenie.net
Steven Talcott Smith
2006-Jun-14 13:49 UTC
[Rails] Re: Re: Re: act_as_versioned and join tables?
Rick Olson wrote:> The gem version is old, you should use the rails plugin. I actually > released that before rails had plugins.Thanks I found this out from your website when googling the error generated by the migration. -- Posted via http://www.ruby-forum.com/.