ruby - Getting correct ID in rails route -
when rake routes,
get test/:test_id/associated_link(.:format) test/(.:format) post test/(.:format) test/new(.:format) test/:id/edit(.:format) patch test/:id(.:format) put test/:id(.:format) delete test/:id(.:format) i need first instance test/:id/associated_link
routes file looks like
rails.application.routes.draw resources :years resources :mateirals resources :people resources :jobs resources :test 'associated_links' end root 'welcome#index' resources :welcome, :companies, :positions
it should member route.
resources :test member 'associated_links' end end
Comments
Post a Comment