and the winner is ...

version_fu

It took only seconds to get it working given that I had already created the
versioned database schema previously using acts_as_versions. version_fu uses
exactly the same database structure, so it was a breeze to substitute it in.
This also means that I can filter versioned data using SQL queries and I
don't have to depend on the API a plugin supplies to manipulate the
versions.

paper_trail also worked quite easily. I was initially attracted to its
ability to deal with schema changes and it keeps versions even after the
current object is deleted. I'm a bit concerned by having a hold-all
versions table that contains any and all ActiveRecords that versioned with
paper_trails. Of course, the polymorphic associations work fine, but it
complicates my needs to filter objects

I didn't try acts_as_revisable ... it looked a bit heavy for my needs, but I
can see that it would be very useful if I needed to give users explicit
control over versions, eg if the user wanted a library, repository, archive,
... My current needs for versioning arise as a consequence of a requirement
rather than being an explicit requirement, so the lighter-weight solution
suits me

thanks again to all who helped me in this

Mark

On Tue, Jul 14, 2009 at 5:24 PM, Mark Ratjens <[email protected]> wrote:

> An update:
> I've run into errors with the gem version of acts_as_versioned ... so I'll
> be looking at alternatives now
>
> One of those days ... arguing with permisssions on my new MacBook killing
> access to sudo,Terminal crashing and having to find out how to reset it ...
> A2 hosting loading Rails 2.1 as a default and then still not getting MySQL
> right when they installed 2.3
>
> the beers in my frig are looking good ...
> thanks for all the suggestions, will let you know how it turns out
>
>
> On Tue, Jul 14, 2009 at 4:43 PM, Gabe Hollombe <[email protected]> wrote:
>
>>
>> More options (I've only used acts_as_versioned, so these aren't
>> recommendations below, just possible options):
>> - Paper Trail: http://github.com/airblade/paper_trail/tree/master
>> - Acts as Git: http://github.com/courtenay/acts_like_git/tree/master
>>
>>
>>
>> On Jul 14, 2009, at 12:42 PM, Mark Ratjens wrote:
>>
>> > Thanks for the responses,
>> >
>> > It looks like I may have had an old version as a plugin in my app
>> > from many Rails versions ago, probably from the old subversion
>> > location.
>> >
>> > This morning, I installed it as a gem and will test it when next I
>> > get the opportunity (hopefully today) ... stay tuned.
>> >
>> > @PommyTom ... I think acts_as_revisable was one of the alternatives
>> > I took a quick look at. From the documentation, it wasn't obvious
>> > that I could search back through the versions with a filter
>> > condition. I have to admit, I was flying through it and may have
>> > missed something.
>> >
>> > cheers and thanks
>> >
>> > Mark
>> >
>> > On Tue, Jul 14, 2009 at 11:46 AM, Dave Bolton <[email protected]>
>> > wrote:
>> > We got a lot of kilometre-age out of version_fu, for creating
>> > versionable records with their own behaviour and extensions.  Two
>> > thumbs up from me.
>> >
>> > I've got a version (teehee) of it on github, with the extra stuff
>> > for extensibility via blocks.
>> >
>> > http://github.com/lightningdb/version_fu/tree/master
>> >
>> > Cheers,
>> > Dave
>> >
>> >
>> >
>> > On Tue, Jul 14, 2009 at 10:46 AM, Dylan Egan <[email protected]>
>> > wrote:
>> >
>> > Hi Mark,
>> >
>> > Are you using it via the gem or from the latest in git? I haven't
>> > played with it in a long time so not sure if it was ever released to
>> > support 2.3 (or patched on git).
>> >
>> > If you are using the latest then you could try out
>> > http://github.com/jmckible/version_fu/tree/master, I haven't played
>> > with it myself though.
>> >
>> > Cheers,
>> >
>> > Dylan.
>> >
>> > 2009/7/13 Mark Ratjens <[email protected]>:
>> > > Has anyone got acts_as_versioned working in 2.3? I'm getting some
>> > quite
>> > > low-level errors in ActiveRecord modules ... it looks like
>> > acts_as_versioned
>> > > hasn't had a update in years, so my suspicions are raised.
>> > >
>> > > I'm prepared to roll up my sleeves and get it working if that's
>> > what is
>> > > needed (i.e others would use it too) ... or can anyone recommend an
>> > > alternative? One thing I like about acts_as_versioned is the
>> > ability to use
>> > > ActiveRecord-style search arguments to filter versions, for
>> > example, in:
>> > >
>> > >
>> > >   def status_changed_today?(date)
>> > >     previous = find_versions(:first, :conditions => ['updated_at
>> > < ?',
>> > > date])
>> > >     !previous or previous.state != state
>> > >   end
>> > >
>> > > so I'd like an alternative to have that feature too.
>> > >
>> > > regards
>> > >
>> > > Mark
>> > >
>> > >
>> > >
>> > >
>> > > >
>> > >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > >
>>
>>
>> >>
>>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to