Thanks for the suggestions. I decided to just go the easy way and have
that one entry point not be RESTful. It will look like:

http://myservice.com/controller/get?uri=XXXX

and:

http://myservice.com/controller/get.xml?uri=XXXX

On Mon, May 23, 2011 at 5:53 PM, Philip Hallstrom <[email protected]> wrote:
>>> I am trying to do the following in a RESTful manner:
>>>
>>> http://myservice.com/controller/the%2bid%2e+value.xml
>>>
>>>  the period causes the rest of url to be considered
>>>  the "format" parameter.
>>
>> Can you change your route, rather than
>>  controller/id.format
>> can you have:
>>  controller/id/format
>> This way it wouldn't matter if there are full stops in the id
>> (although slashes may become a problem :-)
>
> Or tell Rails periods are okay... using a regex... something like...
>
> :requirements => { :id => %r([\w.]+) }
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to