configure restful routes in rails -


i trying create restful web service in rails application. need configure restful routes below.

localhost:3000/books/<book_name>/new/<parameters create book item>      eg:  http://localhost:3000/books/sherlock/new/id/123/business/<bu>/.../{other parameters} 

how configure in routes , access params in controller. please help.

this technique called "route globbing". http://guides.rubyonrails.org/routing.html#route-globbing-and-wildcard-segments

however, if - i'd used "default" query params. many reasons.


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -