If you're calling count, it doesn't matter what select values you've passed, since you're asking ActiveRecord to return an aggregate, not any column values.
On Sun, Jun 1, 2014 at 9:19 AM, Rodrigo Lueneberg <li...@ruby-forum.com> wrote: > Josh, > > If I remove the call to "select" how to specify which columns to select? > PS: You don't want Rails to select all using wildcard * as it will > affect > performance. > > Thanks > Rod > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Ruby on Rails: Talk" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/rubyonrails-talk/b3YH5shQnsY/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > rubyonrails-talk+unsubscr...@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/msgid/rubyonrails-talk/f0ef7d96568fed8082a461502ddb4429%40ruby-forum.com > . > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@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/msgid/rubyonrails-talk/CA%2BSXTRi_JbKbK558_kFFYMYh89Hz44-frJ%3DKuSsg6JGDpT592g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.