Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom namespace for xml_error and render_xml functions? #16

Open
ghost opened this issue Jun 30, 2014 · 0 comments
Open

Custom namespace for xml_error and render_xml functions? #16

ghost opened this issue Jun 30, 2014 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 30, 2014

For instance, I have the following functions:

xml_error(Forbidden) do |err|
err.send 'no-uid-conflict', 'hihi'
end if resource.uids.include?(card_uid)

which will create the following result:

<D:error xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:carddav">
<D:no-uid-conflict>haha/D:no-uid-conflict
/D:error

Can I change the namespace of no-hid-conflict with prefix 'C'? Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants