Displaying 1 result from an estimated 1 matches for "is_sticky".
2006 Jan 02
6
Paginate with joins messing with id
...:joins => "INNER JOIN categories ON
topics.category_id = categories.id",
:conditions => ["topics.is_deleted !=
1 AND categories.safe_name = ?", params[:category_name]],
:order_by => "topics.is_sticky DESC,
topics.id DESC",
:per_page => 20
Then, on my topics listing page I try this:
for topic in @topics
link_to h(topic.title), :action => ''show'', :id => topic
end
This comes up with a number of links that all have the same I...