Displaying 3 results from an estimated 3 matches for "recipe_pages".
2006 Feb 16
1
Pagination help/how to
...umentation of paginate, so any pointers on how to do this will be much
appreciated.
To be specific what I want is that the records returned by user.recipes, the
recipes of the particular user be paginated.
My attempt to do this failed because paginate expects a constant and not set
of records.
@recipe_pages, @recipes = paginate( user.recipes, :per_page => 10)
Thanks for your help.
--
Surendra Singhi
http://ssinghi.kreeti.com, http://www.kreeti.com
Read the latest news at: http://news.kreeti.com
2006 Jan 10
1
sql server freetds/odbc question
I''m having an error from Linux via freeTDS/ODBC to SQL Server with
cod that runs fine against SQLite and MySQL. Here''s the code:
def find_recipes_for_workorder_by_id
@recipe_pages, @recipes = paginate_with_sort :recipes, :per_page
=> 10, \
:conditions => ["recipe.workorder_id = ?", params
[:workorder]]
render :template => ''recipe/list''
end
(I''ve included the custom sorting code at bottom of message.)...
2006 Jan 10
1
sql server & linux: left join problem
I''ve got a left join problem of some sort connecting from linux
FreeTDS/ODBC to SQL Server. It''s similar to the false post I had
earlier, but this is a real problem. Here''s my code:
def find_recipes_for_workorder
@recipe_pages, @recipes = paginate_with_sort :recipes, :per_page
=> 10, \
:joins => ''left join workorder on workorder.workorder_id =
recipe.workorder_id'', \
:conditions => ["workorder.name = ?", params[:workorder][:name]]
render :template => ''recipe/l...