I would guess that Tom didn't include XML responses because none of
the early users of Hobo used it.  Code that is never run is code that
is broken, no matter how simple it is.

It's certainly possible to send XML by using a custom response block
for each controller action, but that's very un-hoboish.

It would be trivial to add "wants.xml {render :xml => this}" to the
controller actions in hobo/hobo/lib/hobo/model_controller.rb.   I
would accept a patch that did so.

But maybe you want custom XML responses.   It would be nice if Hobo
worked the same way for XML that it does for HTML, generating a
default response that could be easily customized by the user in DRYML.

I'd certainly be willing to help you implement either the trivial or
the nice option.

Bryan

On Feb 18, 5:21 pm, dekhaus <[email protected]> wrote:
> Hi.
>
>     I'm intrigued by Hobo and have a question or two.
>
>     Is it possible to keep the default Hobo interface - but at the
> same time allow CRUD to an app RESTfully ?  I noticed the default
> behavior of Hobo is to create views that do not support XML.   I'd
> like to create views that support and XML as well as use the default
> Hobo interface for html.   Is that possible ?   Blogs posts /
> additional resources would be greatly appreciated.
>
> Thanks Dave

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.

Reply via email to