#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
当我到/ articles/test并单击delete时,它什么都不做。我猜我的自定义路线正在阻止它,我该如何解决它?在Rails中使用自定义路由时,销毁方法不起作用
谢谢
你是如何设置测试路线的,你的'link_to' /'button_to'代码启动了删除看起来像什么? – 2010-02-04 17:11:56
我正在使用什么脚手架。我不这么认为,那该死的路线。 – 2010-02-04 17:43:16
从您发布的代码中,您没有/ articles/test路径。 – 2010-02-05 09:46:57