Philip Hallstrom wrote: > Two choices for you.. > > - Add your own inflection so that 'news' is singularlized to 'news'. > - Change your class name.
Keep in mind that model names should be nouns. Controller actions are verbs. In your case of WhatsNew is practically a complete sentence. "What is new?" Maybe use something like NewsItem or simply News, which rails will properly pluralize as "News." In this case the table name will be news. Then to find out, "What is new?" you can create a named_scope that gets recent new items like this: @recent_news_items = NewsItem.recent or @recent_news_items = News.recent -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

