Hi all, I'm creating a REST API for one of my projects and I'm stuck in a routing issue. I have a resource called mobileowner (which will send the user xml when given the mobile no) And my controller is in the following path app -> controllers -> api -> mobileowner. so can someone tell me how to configure this in my routs.rb file. (to work mobileowner as a resource). I'm using rails 2.0.2 thankx in advance cheers sameera
on 2008-12-15 12:11
on 2008-12-15 12:19
map.namespace :api do |api| api.resources :mobileowners end should be all you need.
on 2008-12-15 12:51
Thorsten M. wrote: > map.namespace :api do |api| > api.resources :mobileowners > end > > should be all you need. Hi Thorsten, Thats IT :)))) it worked..... thankx you saved my day thankx again cheers sameera