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,  <maciej...@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.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/-3oavuhx0VcJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment