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

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -