<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Disqus - Latest Comments for Oshoma Momoh</title><link>http://disqus.com/people/75297ea8a09ca813a6fadc0dc5dd933f/</link><description></description><language>en</language><lastBuildDate>Thu, 25 Oct 2007 17:20:00 -0000</lastBuildDate><item><title>Re: Introducing resource_controller: Focus on what makes your controller special.</title><link>http://jamesonsoftware.disqus.com/introducing_resource_controller_focus_on_what_makes_your_controller_special/#comment-7962398</link><description>The URL helpers in helpers.rb and urligence seem to assume the object's class name is always the correct name to use within the URL path. What is the best way to override this with a custom resource name?&lt;br&gt;&lt;br&gt;Example: We have a model SpecialPost, and a controller SpecialPostsController. We want to expose paths such as, "/user/1/posts/", rather than "/user/1/special_posts/".   So in routes.rb we do:&lt;br&gt;     map.resources :users do |user|&lt;br&gt;        user.resources :posts, :controller =&amp;gt; 'special_posts', :name_prefix =&amp;gt; 'user_'&lt;br&gt;     end</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Oshoma Momoh</dc:creator><pubDate>Thu, 25 Oct 2007 17:20:00 -0000</pubDate></item><item><title>Re: Introducing resource_controller: Focus on what makes your controller special.</title><link>http://jamesgolick.disqus.com/introducing_resource_controller_focus_on_what_makes_your_controller_special/#comment-7965028</link><description>The URL helpers in helpers.rb and urligence seem to assume the object's class name is always the correct name to use within the URL path. What is the best way to override this with a custom resource name?&lt;br&gt;&lt;br&gt;Example: We have a model SpecialPost, and a controller SpecialPostsController. We want to expose paths such as, "/user/1/posts/", rather than "/user/1/special_posts/".   So in routes.rb we do:&lt;br&gt;     map.resources :users do |user|&lt;br&gt;        user.resources :posts, :controller =&amp;gt; 'special_posts', :name_prefix =&amp;gt; 'user_'&lt;br&gt;     end</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Oshoma Momoh</dc:creator><pubDate>Thu, 25 Oct 2007 17:20:00 -0000</pubDate></item></channel></rss>