On Apr 7, 8:56 am, Tom Mac <li...@ruby-forum.com> wrote:
> Hi
>   I have just started learning Rails3 (ruby1.92, Rails3.0.5) and watched
> railscast episode 202.  I tried
> Article.where(:hidden => true) from console. I have a confusion there
> since the cast says that , the above statement execute query in the view
> when iterated. I did not understand that. I got result from query in the
> console it self when executed  Article.where(:hidden => true). Please
> comment

The issue is that the console wants to print the result of the
expression you type, which forces ActiveRecord to execute the query.

Fred
>
> Thanks
>
> --
> Posted viahttp://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to