search for: table_a_pages

Displaying 1 result from an estimated 1 matches for "table_a_pages".

2006 Aug 15
1
sorting attribute in list from foreign table
...some code to hopefully help you understand more clearly what I''m trying to do. sort = case @params[:sort] when "last inserted" then "id DESC" when "name" then "table_b.name" # <---- does not work end @table_a_pages, @table_as = paginate :table_a, :order => sort, :per_page => 10 At the noted line, I am unable to use table_b.name to sort the list. Any suggestions on how to solve this? Thanks! -Gilles -- Posted via http://www.ruby-forum.com/.