# Acts\_as\_versioned and Rails 2.1

**URL:** <https://www.ruby-forum.com/t/acts-as-versioned-and-rails-2-1/139606>\
**Category:** Rails\
**Created:** [June 5, 2008, 11:32am UTC](https://www.ruby-forum.com/t/acts-as-versioned-and-rails-2-1/139606 "2008-06-05T11:32:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![toby\_privett](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/9d8465/32.png) [@toby\_privett](https://www.ruby-forum.com/u/toby_privett)\
**Post date:** [June 5, 2008, 11:32am UTC](https://www.ruby-forum.com/t/acts-as-versioned-and-rails-2-1/139606/1 "2008-06-05T11:32:35Z")

</div>

Hello

Is anyone having issues with acts\_as\_versioned and Rails 2.1 ?

On saving an Active Record object using acts\_as\_versioned

“NoMethodError: You have a nil object when you didn’t expect it!”

and:

```
    from 

```

/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active\_record/attribute\_methods.rb:211:in  
`version=' from /Users/toby/rorbar/olhc_website/vendor/plugins/acts_as_versioned/lib/acts_as_versioned.rb:431:in`send’  
from  
/Users/toby/rorbar/olhc\_website/vendor/plugins/acts\_as\_versioned/lib/acts\_as\_versioned.rb:431:in  
`set\_new\_version’

---

<div class="post-metadata">

**Author:** ![toby\_privett](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/9d8465/32.png) [@toby\_privett](https://www.ruby-forum.com/u/toby_privett)\
**Post date:** [June 5, 2008, 12:48pm UTC](https://www.ruby-forum.com/t/acts-as-versioned-and-rails-2-1/139606/2 "2008-06-05T12:48:41Z")

</div>

The partial updates feature in 2.1 caused a conflict with the the way  
acts\_as\_versioned handles it’s own change history. Check out the  
latest master on github as this has been resolved:

> **[GitHub - technoweenie/acts\_as\_versioned: ActiveRecord plugin for versioning your...](https://github.com/technoweenie/acts_as_versioned/tree/master)**
>
> master

---

<div class="post-metadata">

**Author:** ![toby\_privett](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/9d8465/32.png) [@toby\_privett](https://www.ruby-forum.com/u/toby_privett)\
**Post date:** [June 5, 2008, 12:49pm UTC](https://www.ruby-forum.com/t/acts-as-versioned-and-rails-2-1/139606/3 "2008-06-05T12:49:16Z")

</div>

check out the latest version on github, there is a conflict with the  
way 2.1 handles partial attributes and acts\_as\_versioned which has now  
been resolved.

---

<div class="post-metadata">

**Author:** ![toby\_privett](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/9d8465/32.png) [@toby\_privett](https://www.ruby-forum.com/u/toby_privett)\
**Post date:** [June 5, 2008, 1:25pm UTC](https://www.ruby-forum.com/t/acts-as-versioned-and-rails-2-1/139606/4 "2008-06-05T13:25:27Z")

</div>

> The partial updates feature in 2.1 caused a conflict with the the way  
> acts\_as\_versioned handles it’s own change history. Check out the  
> latest master on github as this has been resolved:
> 
> [GitHub - technoweenie/acts\_as\_versioned: ActiveRecord plugin for versioning your models. · GitHub](http://github.com/technoweenie/acts_as_versioned/tree/master)

Thanks very much, Tekin!

---

<div class="post-metadata">

**Author:** ![toby\_privett](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/9d8465/32.png) [@toby\_privett](https://www.ruby-forum.com/u/toby_privett)\
**Post date:** [July 27, 2008, 1:08am UTC](https://www.ruby-forum.com/t/acts-as-versioned-and-rails-2-1/139606/5 "2008-07-27T01:08:08Z")

</div>

Not working for me, I have to say. “gem install acts\_as\_versioned” only  
installs the documentation, and none of the CVS links provided by this  
“git” thing work.

If Iâ€™m wrong, please let me know by all means, but only if you can  
provide a working link.

Thanks,  
-M

toby privett wrote:

> > The partial updates feature in 2.1 caused a conflict with the the way  
> > acts\_as\_versioned handles it’s own change history. Check out the  
> > latest master on github as this has been resolved:
> > 
> > [GitHub - technoweenie/acts\_as\_versioned: ActiveRecord plugin for versioning your models. · GitHub](http://github.com/technoweenie/acts_as_versioned/tree/master)
> 
> Thanks very much, Tekin!

---

<div class="post-metadata">

**Author:** ![toby\_privett](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/9d8465/32.png) [@toby\_privett](https://www.ruby-forum.com/u/toby_privett)\
**Post date:** [July 27, 2008, 2:16am UTC](https://www.ruby-forum.com/t/acts-as-versioned-and-rails-2-1/139606/6 "2008-07-27T02:16:39Z")

</div>

mark you could just go to github and download the tarbal and untar it  
into  
your vendor plugins directory if you are having trouble getting git to  
work  
for you.

On Sat, Jul 26, 2008 at 4:08 PM, Mark Steadman \<
