Rails Routing to New associated model
问题 I have an App that has Households that visit my agency and I am logging each time a household visits. I select the household in the households index and open the visit view which is in the visits model in my index to select a household and create a new visit I have teh following code on my index view for households: = link_to 'Visit', new_household_visit_path(household), class: 'btn btn-mini' Rake Routes Shows: new_household_visit GET /households/:household_id/visits/new(.:format) visits#new