Displaying 2 results from an estimated 2 matches for "news_articles".
2007 Jun 19
1
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
2009 Jan 14
0
Edit method problem with a plural-named model
Hi, I recently made a model called ''news''. I realize that it''s plural
and was gonna cause some problems, but I got the routing all down fine
with:
map.resources :news, :singular => :news_article
everything works fine except the EDIT method. it gives me this error:
You have a nil object when you didn''t expect it!
The error occurred while evaluating