[Rails] Display Options While Paginating
by Partydrone other posts by this author
Jun 19 2007 1:45PM messages near this date
[Rails] Re: gem is an evil?
|
[Rails] Re: Display Options While Paginating
I have a table full of articles that I want to paginate. Easy enough
with:
[Controller]
@article_pages, @articles = paginate(:articles, :per_page =>
20, :order => 'post_date DESC, title ASC')
BUT, there are different types of articles: regular news articles
(designated NA), and press releases (designated PR).
If I want to put each type in a different table on the same page, what
is a good way to go about doing that?
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Ta
lk" group.
To post to this group, send email to rubyonrails-talk@[...].com
To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@[...].com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Thread:
Partydrone
Partydrone
|