Ruby on Rails Friday, March 29, 2013

This is because we have a whitelabel feature in our app, and therefore most columns and tables are labelled to. The label "app" simply means that it loads all the data from our main app.

W dniu piątek, 29 marca 2013 11:48:56 UTC+1 użytkownik Colin Law napisał:

On 29 March 2013 09:57,  <> 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


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
To post to this group, send email to
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment