Ruby on Rails Friday, March 29, 2013

On 29 March 2013 09:57, <maciej.mietek@timeself.pl> wrote:
> Hey, thanks for the answer.
>
> As for the Book.rb - yes, it's a typing error.
>
> When I run Book.first.length in the rails console, I get:
>
> 1.9.3-p327 :001 > Book.first.length
> Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."label" =
> 'app LIMIT 1

Why does that include a WHERE clause? and why is it looking for label = 'app

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment