Platinum Partner

Nested Queries In Rails


Entry.where(:id => Entry.select('max(id) id').arel).to_sql

=> "SELECT     \"entries\".* FROM       \"entries\"  WHERE     (\"entries\".\"id\" IN (SELECT     max(id) id FROM       \"entries\"))"
{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}