messages GET /messages(.:format) messages#index
POST /messages(.:format) messages#create
new_message GET /messages/new(.:format) messages#new
edit_message GET /messages/:id/edit(.:format) messages#edit
message GET /messages/:id(.:format) messages#show
PUT /messages/:id(.:format) messages#update
DELETE /messages/:id(.:format) messages#destroy
GET /messages/archive/:id(.:format) messages#archive
notes GET /notes(.:format) notes#index
POST /notes(.:format) notes#create
new_note GET /notes/new(.:format) notes#new
edit_note GET /notes/:id/edit(.:format) notes#edit
note GET /notes/:id(.:format) notes#show
PUT /notes/:id(.:format) notes#update
DELETE /notes/:id(.:format) notes#destroy
GET /notes/archive/:id(.:format) notes#archive
root / home#main
/:controller(/:action(/:id))(.:format) :controller#:action
但是访问http://localhost:3000/messages/10
出错 No route matches {:action=>"edit", :controller=>"notes", :id=>nil}