Rails 2.3未知动作没有动作响应12345-yyyymmdd-6789-ABC-Another_Test

时间:2012-02-21 14:13:30

标签: ruby-on-rails routes

为什么我有:

Unknown action  
No action responded to 12345-yyyymmdd-6789-ABC-Another_Test. Actions: index, show, and sub_layout

网址

localhost:3000/asset/recordings/12345-yyyymmdd-6789-ABC-Another_Test?time=00%3A25%3A05

这是 route.rb

map.namespace :asset do |asset| 
map.resources :asset, :controller => 'asset/recordings', :action => 'index'  # index of asset 
asset.resources :recordings, :controller => 'recordings'  
asset.resources :recordings do |recording|
recording.resource :transcript
end

asset.resources :clip_lists, :controller => 'clip_lists'
map.delete_asset_clip_list 'asset/clip_list/:id/destroy', :controller => 'asset/clip_lists', :action => 'destroy'
map.asset_clip_list 'asset/clip_list/:id', :controller => 'asset/clip_lists', :action => 'show'    

asset.connect ':asset/controller/:action/:id'
asset.connect ':asset/controller/:action/:id.:format'
end

如果我在其工作的网址中手动添加show?id=

localhost:3000/asset/recordings/show?id=12345-yyyymmdd-6789-ABC-Another_Test?time=00%3A25%3A05

0 个答案:

没有答案