Max Muermann wrote:
>>
>> I want to basically list out all the books by
authors with names like
>> 'jim' - prefer to have this paginated so that I can
use my basic
>> paginated list view. However, this throws up an
exception:
>>
>
>
> book_pages, books = paginate(:books,
>
:per_page => 20,
>
:conditions
> =>['author.name like ?', '%jim%],
>
:include=>:author
>
:order_by =>
> sort_order)
>
> Note the :include option. You may want to look that up
in the rails
> docs - this is off the top of my head, I might have the
naming
> slightly wrong.
>
> Max
>
Hi Max,
Thanks for your suggestions - I apologize for replying this
late, but my
site/ email had died for a while!
Cheers
Mohit.
_______________________________________________
Rails mailing list
Rails lists.rubyonrails.org
h
ttp://lists.rubyonrails.org/mailman/listinfo/rails
|