#routes.rb
map.connect '/articles/new', :controller => 'articles', :action => 'new'
map.connect '/articles/:author_name', :controller => 'articles', :action => 'show'
map.connect '/articles/:author_name/edit', :controller => 'articles', :action => 'edit'
map.resources :articles, :comments
When I got to /articles/test and click delete, it does nothing. I’m guessing my custom routes are preventing it, how do I solve it?
Thanks
I think you want to rethink what you are doing here.
I would rely on the path prefix instead of defining overlapping routes:
That or see if you can define your resource like this:
I know you can do that with a :has_many and you get the namespacing you want, but not positive about belongs_to.