thanks! thanks!
--
Posted via http://www.ruby-forum.com/.
--
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.
DESC not :DESC. Remove semicolons.
On Thursday, June 25, 2015 at 9:09:11 PM UTC+5, Ruby-Forum.com User wrote:
>
> please help solve the problem.
> tables:
> users:
> id: integer
> name: varchar
>
> posts:
> id: integer
> title: varchar
> user_id: integer
> views: integer
>
>
> models:
order('SUM(posts.views) DESC').
Remove semicolons.
On Thursday, June 25, 2015 at 9:09:11 PM UTC+5, Ruby-Forum.com User wrote:
>
> please help solve the problem.
> tables:
> users:
> id: integer
> name: varchar
>
> posts:
> id: integer
> title: varchar
> user_id: integer
> views: integer
3 matches
Mail list logo