Displaying 1 result from an estimated 1 matches for "applicationresourc".
Did you mean:
applicationresource
2010 Apr 28
1
ActiveResource does not detect errors for my very simple model
...uired:
<errors type="array">
<error>Name cannot be empty</error>
</errors>
Why would ActiveResource interpret such a response as valid? Is there
something more I need to do in my model for validations to take
effect? My models themselves are dead simple:
class ApplicationResource < ActiveResource::Base
self.site = ''http://localhost/frontend/www/api''
end
class Menu < ApplicationResource
end
Thomas
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email...