Sunday, January 8, 2012

[Rails] Re: Report strategy

I gave up on find_by_sql (it wasn't adding the attributes it seemed it
should) and am using select_all:

@posts = ActiveRecord::Base.connection.select_all(query_method)

On Jan 8, 4:16 pm, djangst <djan...@gmail.com> wrote:
> The other problem I have is find_by_sql is only returning a couple of
> columns from one table, when it's supposed to return many columns from
> several tables.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment