为什么我有:
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