Displaying 1 result from an estimated 1 matches for "crestion".
Did you mean:
creation
2006 Feb 01
1
Rails pagination problem
...#39;'%tiger%''
@program_pages, @programs = paginate :programs, :conditions =>
["program_name like ?", query_term], :per_page => 5, :include =>
[:status], :order => ''program_name''
If I remove ":include => [:status]" from the paginate crestion code,
it works fine. So the following works:
@program_pages, @programs = paginate :programs, :conditions =>
["program_name like ?", query_term], :per_page => 5, :order =>
''program_name''
I have to include status Active Record class because :order clause is
dyn...