Hi -- I'm using ActiveResource, and I want to be able, when a model fails to
create, to return the failure reason to the caller with the 500 response.
Can this be done?
I'm currently calling :
  render( :xml => { :error => model.errors.full_messages.join( " -- " ) },
:status => :internal_server_error } )

This specs as I want it to, but then I just get the exception in the code
using it as an active resource, and I've no idea how to get at my lovely
error hash (assuming it's even being passed -- the create returns nil on
error, and the error object has no body method or anything that looks like
it may be hiding my error message).

Any & all help *very* appreciated, as I'm very, very tired & this is the 3rd
day I've done 14 hours, only today will be longer, and now I'm ranting &
rambling & will shut up.
Maybe I'll go get some food. & caffeine.
Cheers,
   Doug.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"NWRUG" 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/nwrug-members?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to