Make sure you use

/app/controller/action.json/arg0/arg1/arg2

and not

/app/controller/action/arg0/arg1/arg2.json

On 2 Lug, 13:49, sethford <[email protected]> wrote:
> So I'm making an app that will be communicating with an android app in
> a RESTful way using json. For example the app has many todo lists
> which are retrieved with a url such as app/todo/lists/9.json (for list
> 9). For some reason when the request is parsed it doesn't recognize
> the .json as an extension and instead it ends up with an arg
> ['9.json'] and the extension defaults to html. I'm trying to figure
> out where this happens so I can fix it but it seems like something
> that shouldn't be happening at all.

Reply via email to