我在軌的模型,我稱它爲free_mess
更改型號名稱軌
我的路線文件包含resources :free_mess
顯然,這型號是不理想的在瀏覽器中顯示,它顯示了像這樣:
localhost:3000/free_mess/show
localhost:3000/free_mess/index
localhost:3000/free_mess/message1
我需要在瀏覽器中free_mess
更改爲更具可讀性像'messages'
。所以,瀏覽器顯示此:
localhost:3000/messages/show
localhost:3000/messages/index
localhost:3000/messages/message1