# Different behaviour Rails 2.1 on linux / osx

**URL:** <https://www.ruby-forum.com/t/different-behaviour-rails-2-1-on-linux-osx/142686>\
**Category:** Rails\
**Created:** [July 10, 2008, 11:55am UTC](https://www.ruby-forum.com/t/different-behaviour-rails-2-1-on-linux-osx/142686 "2008-07-10T11:55:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikwest](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/db5fbb/32.png) [@nikwest](https://www.ruby-forum.com/u/nikwest)\
**Post date:** [July 10, 2008, 11:55am UTC](https://www.ruby-forum.com/t/different-behaviour-rails-2-1-on-linux-osx/142686/1 "2008-07-10T11:55:41Z")

</div>

Hi,

I am running into a problem which really confuses me. I have Rails 2.1  
and friends installed on both my osx development machine and a gentoo  
linux machine.

I get a different ActiveRecord initialisation behaviour on those  
machines. Here is a console example:

OSX (IMHO correct behaviour):

Loading development environment (Rails 2.1.0)

> > Image.new.parent\_id  
> > =\> nil

Linux (IMHO wrong behaviour):

Loading development environment (Rails 2.1.0)

> > Image.new.parent\_id  
> > =\> 0

Image is an ActiveRecord using the attachment\_fu plugin (but that is  
not the problem).

Any ideas why this is happening???

Thanks

nikwest

---

<div class="post-metadata">

**Author:** ![nikwest](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/db5fbb/32.png) [@nikwest](https://www.ruby-forum.com/u/nikwest)\
**Post date:** [July 10, 2008, 12:15pm UTC](https://www.ruby-forum.com/t/different-behaviour-rails-2-1-on-linux-osx/142686/2 "2008-07-10T12:15:36Z")

</div>

Ok, as usual I solved it once I wrote the post.

The problem was that I had an older version of sqlite3-ruby (1.1) on  
my linux box. After updating to 1.2.2 it showed the same behaviour as  
on OSX …
