2012-03-15 99 views
3

這裏是我的routes.rbRails的路線怪異

scope :path_names => {:new => "creaza", :edit => "modifica", :sign_up => "inregistreaza", :sign_in => "autentificare", :sign_out => "iesire", :show => "vezi"} do 
...... 
resources :nota, :only => [:new, :create] 
...... 
end 

這裏是耙路線的輸出:

.... 
nota POST /nota(.:format)           nota#create 
new_notum GET /nota/creaza(.:format)         nota#new 
.... 

什麼? NOTUM? 'notum'從哪裏來?

謝謝,

回答

1

「notum」是Rails試圖對「nota」進行脫離的嘗試。 This question包含一些關於如何覆蓋這些複數的信息,並且here's an article關於對英語以外的語言適配變形器。另請參閱路由指南中的this section