Routing Problem please help

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

map.namespace :api do |api|
api.resources :mobileowners
end

should be all you need.

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