search for: paginate_by_sql

Displaying 4 results from an estimated 4 matches for "paginate_by_sql".

2006 Aug 16
0
Filtering pagination results on a foreign table criteria
...es tables. I want to display only the documents whose states are not "Published". I haven''t figured out how to do this using the standard paginate method (maybe there''s a way using its :joins option). I''m also considering writing a custom paginator or using paginate_by_sql[1]. Does anyone have techniques they''ve used to do this? Jose [1] http://thebogles.com/blog/2006/06/paginate_by_sql-for-rails-a-more-general-approach/ -- Posted via http://www.ruby-forum.com/.
2006 Dec 18
2
Find, paginate, conditions and associations
Hi, I''m trying to figure out how to use paginate when one of the conditions depends on the association between one model and another. For example: I have a model Authors which has_many Posts. I would like to find all the authors and order them by the number of posts that they have published and then paginate those results. What if I wanted to base the paginate condition on all the
2007 Jul 20
4
the value in text_field helper
I have been working on this small, minute, part on my project and it all hinges on setting the value in a text_field helper. Saying: <%= text_field ''user'', ''company'', :value => @login %> does not do it. When I go and look at the raw html, there is no value there and "value" is an attribute of the input tag, im pretty sure. I really like
2009 Feb 16
24
como consultar en oracle
holaa todos ante todo un cordial saludo alguien que me pueda ayudar. se plantea lo siguiente necesito mostrar 2 campos de una tabla los cuales son mtin_mtin,mtin_descri de una tabla llamada re_tmtinv de esos dos campos se necesita obtener el codigo y la descripcion,y luego ser mostrado para despues ser agregados a un formulario. el problema que tengo es que ya tengo la vista pero esta en blanco