I'm wanting something like...
<errors>
<error>foo</error>
<error>bar</error>
</errors>
I find it really interesting that a Rails controller will accept xml
like...
<process-codes>
<code>one</code>
<code>two</code>
</process-codes>
.. and transform it into a hash..
{ :process_codes => { :code => [ "one", "two" ] } }
... but will not go back the other way when I want to convey errors...
{ :errors => { :error => [ "foo", "bar" ] } }
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---