我已經產生了新的模型:新模式索引頁,顯示其他模型索引頁
軌生成腳手架網站
然後我試圖顯示所有條目,但而不是顯示/它顯示的網站/設備
> rake routes
> test_on GET /test/on(.:format) test#on
test_off GET /test/off(.:format) test#off
power_on GET /power/on(.:format) power#on
power_off GET /power/off(.:format) power#off
power_cycle GET /power/cycle(.:format) power#cycle
home_index GET /home/index(.:format) home#index
devices_new GET /devices/new(.:format) devices#new
devices_destroy DELETE /devices/destroy(.:format) devices#destroy
turnon_device PUT /devices/:id/turnon(.:format) devices#turnon
turnoff_device PUT /devices/:id/turnoff(.:format) devices#turnoff
powercycle_device PUT /devices/:id/powercycle(.:format) devices#powercycle
getsites_device GET /devices/:id/getsites(.:format) devices#getsites
devices GET /devices(.:format) devices#index
POST /devices(.:format) devices#create
new_device GET /devices/new(.:format) devices#new
edit_device GET /devices/:id/edit(.:format) devices#edit
device GET /devices/:id(.:format) devices#show
PUT /devices/:id(.:format) devices#update
DELETE /devices/:id(.:format) devices#destroy
users GET /users(.:format) users#index
POST /users(.:format) users#create
new_user GET /users/new(.:format) users#new
edit_user GET /users/:id/edit(.:format) users#edit
user GET /users/:id(.:format) users#show
PUT /users/:id(.:format) users#update
DELETE /users/:id(.:format) users#destroy
sites GET /sites(.:format) sites#index
POST /sites(.:format) sites#create
new_site GET /sites/new(.:format) sites#new
edit_site GET /sites/:id/edit(.:format) sites#edit
site GET /sites/:id(.:format) sites#show
PUT /sites/:id(.:format) sites#update
DELETE /sites/:id(.:format) sites#destroy
root / devices#index
感謝所有幫助 謝謝 d
我看到你的'網站'路線在那裏列出。問題是什麼? – bricker
當轉到本地主機:3000 /網站,它出現作爲本地主機:3000 /設備 –