Comments on: learns_to use acts_as_versioned http://urbanhonking.com/ideasfordozens/2006/02/15/learns_to_use_acts_as_versione/ Thu, 19 Jun 2014 09:26:37 +0000 hourly 1 By: Harm http://urbanhonking.com/ideasfordozens/2006/02/15/learns_to_use_acts_as_versione/#comment-154 Fri, 02 Nov 2007 08:03:15 +0000 http://urbanhonking.com/ideasfordozens/2006/02/15/learns_to_use_acts_as_versione/#comment-154 Great post! Really helped get started. But what about the ‘find_version’ method? I got the impression that I could use that method on an instance variable(as per http://ar-versioned.rubyforge.org/classes/ActiveRecord/Acts/Versioned/ActMethods.html#M000004)
Am I mistaken in this assumption?
@Jonas: http://www.railsforum.com/viewtopic.php?pid=41534

]]>
By: Jeremy http://urbanhonking.com/ideasfordozens/2006/02/15/learns_to_use_acts_as_versione/#comment-153 Mon, 15 Oct 2007 13:38:36 +0000 http://urbanhonking.com/ideasfordozens/2006/02/15/learns_to_use_acts_as_versione/#comment-153 What about when you’re adding attributes to a pre-existing, versioned model? Seems like you have to manually add the column to both the model and version table, which isn’t very DRY. Or is there a special way to do this?

]]>
By: Christopher http://urbanhonking.com/ideasfordozens/2006/02/15/learns_to_use_acts_as_versione/#comment-152 Thu, 17 May 2007 11:51:40 +0000 http://urbanhonking.com/ideasfordozens/2006/02/15/learns_to_use_acts_as_versione/#comment-152 your link to Rails Weenie is no longer working. Could you provide the missing info somewhere in this post?
Many thanks

]]>
By: Jonas http://urbanhonking.com/ideasfordozens/2006/02/15/learns_to_use_acts_as_versione/#comment-151 Mon, 15 Jan 2007 03:32:47 +0000 http://urbanhonking.com/ideasfordozens/2006/02/15/learns_to_use_acts_as_versione/#comment-151 Thanks for a great tutorial!

]]>
By: Vishwajith http://urbanhonking.com/ideasfordozens/2006/02/15/learns_to_use_acts_as_versione/#comment-150 Mon, 25 Sep 2006 04:01:12 +0000 http://urbanhonking.com/ideasfordozens/2006/02/15/learns_to_use_acts_as_versione/#comment-150 hi ,
[plz ignore the previous mesg of mine ]
I am working on a project which already has tables named versions , languages_versions etc..
and it has version, version_id all over the place … 🙁
is there a way to make sure that there is no name conflict at all ?? because the tables named ‘products’ etc are working with acts_as_versioned but not the ones like versions etc 🙁
i tried using
acts_as_versioned
:table_name => :_backup_versions ,
:version_column => :_backup
and created tables with these names.. still not working..
is it possible to use acts_as_versioned for my project without renaming versions to something else in the entire code…????

]]>
By: Vishwajith http://urbanhonking.com/ideasfordozens/2006/02/15/learns_to_use_acts_as_versione/#comment-149 Mon, 25 Sep 2006 03:57:28 +0000 http://urbanhonking.com/ideasfordozens/2006/02/15/learns_to_use_acts_as_versione/#comment-149 hi ,
I am working on a project which already has tables named versions , languages_versions etc..
and it has version, version_id all over the place … 🙁
is there a way to make sure that there is no name conflict at all ?? because the tables named ‘products’ etc are working with acts_as_versioned but the ones like versions etc 🙁
i tried using
acts_as_versioned
:table_name => :_backup_pversions ,
:version_column => :_backup
and created tables with these names.. still not working..
is it possible to use acts_as_versioned for my project without renaming versions to something else in the entire code…????

]]>
By: Omer Metel http://urbanhonking.com/ideasfordozens/2006/02/15/learns_to_use_acts_as_versione/#comment-148 Sat, 08 Jul 2006 20:15:11 +0000 http://urbanhonking.com/ideasfordozens/2006/02/15/learns_to_use_acts_as_versione/#comment-148 Thank you for this write up – it was very helpful. I do have a question that I was hoping you could help answer… Is there anything special that needs to be set up when using acts_as_versioned and the model to be versioned has a lock_version field? Thank you in advance.

]]>
By: James http://urbanhonking.com/ideasfordozens/2006/02/15/learns_to_use_acts_as_versione/#comment-147 Tue, 18 Apr 2006 06:47:50 +0000 http://urbanhonking.com/ideasfordozens/2006/02/15/learns_to_use_acts_as_versione/#comment-147 Hi there, i’m not sure if its just me, but I seem to have found an error in your code, i’ve spent the last few days trying to figure out why only one of my pages (of a wiki) would revert while the others would not.
Where you’ve created the link_to, instead of passing the version.id it should be the version.version as this is needed to revert to that version number not the id.
My problem was that the one page that would revert happened to be one of the first versions saved in the database so its version.id was 1 and version.version 1 also, this was the same for its version.id 2 but not version.id 3.
So the first 2 versions of the page were reverting but not the 3rd as its version.id was diff from its version.version.
Phew. Hope this helps someone, tell me what you think.

]]>
By: Greg C http://urbanhonking.com/ideasfordozens/2006/02/15/learns_to_use_acts_as_versione/#comment-146 Mon, 17 Apr 2006 06:41:12 +0000 http://urbanhonking.com/ideasfordozens/2006/02/15/learns_to_use_acts_as_versione/#comment-146 Thanks for your help, Greg, I’ll be looking into :through.

]]>
By: Greg http://urbanhonking.com/ideasfordozens/2006/02/15/learns_to_use_acts_as_versione/#comment-145 Mon, 10 Apr 2006 22:16:20 +0000 http://urbanhonking.com/ideasfordozens/2006/02/15/learns_to_use_acts_as_versione/#comment-145 No problem, Jeff. Glad I could help. If you’re interest, I also wrote up something of an introduction to migrations a little while after writing this. If this post got your curiousity up or you’re otherwise just getting started with migrations, you might find it helpful.

]]>