# Rails 2.1 console prints ActiveRecord object in different format with rails 1.2.3

**URL:** <https://www.ruby-forum.com/t/rails-2-1-console-prints-activerecord-object-in-different-format-with-rails-1-2-3/141075>\
**Category:** Rails\
**Created:** [June 21, 2008, 6:26pm UTC](https://www.ruby-forum.com/t/rails-2-1-console-prints-activerecord-object-in-different-format-with-rails-1-2-3/141075 "2008-06-21T18:26:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 21, 2008, 6:26pm UTC](https://www.ruby-forum.com/t/rails-2-1-console-prints-activerecord-object-in-different-format-with-rails-1-2-3/141075/1 "2008-06-21T18:26:35Z")

</div>

Ok, I have a project that using rails 2.1. I run ruby script/console  
and here is what I see:

> > BannerFile.find :last  
> > =\> #\<BannerFile id: 29, banner\_position\_id: 8, client: “E2Ma Consumer  
> > Profiling”, name: “H&M kledingcheque\_Rectangle\_13-02-08”, file:  
> > “mde\_7.jpg”, target\_url: “[Jouw Toekomstige Hosting Partner Welkom!](http://www.content-hoster.nl/f3/index.php)?  
> > an=1024&i…”, start\_date: “2008-02-12”, end\_date: “2008-03-13”,  
> > created\_at: “2008-02-13 10:20:11”, updated\_at: “2008-06-20 12:00:19”,  
> > status: nil, impression\_count: 0, click\_count: 0, file\_meta: nil\>

This is what we see in rails 1.2.3

> > b=BannerFile.find 2  
> > =\> #\<BannerFile:0x2320828 @attributes={“status”=\>nil,  
> > “end\_date”=\>“2008-01-06”, “start\_date”=\>“2008-01-05”, “name”=\>“flash  
> > banner”, “updated\_at”=\>“2008-06-20 12:05:57”, “target\_url”=\>“http://  
> > [www.sina.com.cn](http://www.sina.com.cn)”, “banner\_position\_id”=\>“2”, “client”=\>“Carp”,  
> > “id”=\>“2”, “click\_count”=\>“0”, “impression\_count”=\>“11”,  
> > “file\_meta”=\>nil, “created\_at”=\>“2008-01-07 07:08:20”,  
> > “file”=\>“121409\_home-284bt.swf”}\>

See the difference? So can anyone tell me why in rails 2.1  
activerecord object is printed differently? Thanks.

Snow

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 21, 2008, 6:31pm UTC](https://www.ruby-forum.com/t/rails-2-1-console-prints-activerecord-object-in-different-format-with-rails-1-2-3/141075/2 "2008-06-21T18:31:19Z")

</div>

On Jun 20, 1:35 pm, “removed\_email\_address@domain.invalid” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Ok, I have a project that using rails 2.1. I run ruby script/console  
> and here is what I see:

The output format changed in 2.0 to make it easier to read.

Fred
