Rails 3.1 has_one nested resource: routing not generating “all” paths
问题 I have a has_one relation: # supplier.rb has_one :presentation ... # presentation.rb belongs_to :supplier ... and the folowing nested routes for them: # routes.rb resources :suppliers do resource :presentation end running rake routes gives: supplier_presentation POST ... {:action=>"create", :controller=>"presentations"} new_supplier_presentation GET ... {:action=>"new", :controller=>"presentations"} edit_supplier_presentation GET ... {:action=>"edit", :controller=>"presentations"} GET ... {