Displaying 2 results from an estimated 2 matches for "missing_field".
2012 Sep 25
3
Proposal for a new ActiveModel::Errors structure
...bigger. We''d like to create error responses in
our API similar to GitHub:
{
"message": "Validation Failed",
"errors": [
{
"resource": "Issue",
"field": "title",
"code": "missing_field"
}
]
}
Currently it''s impossible to figure out which validations actually failed
for a given field, as AM::Errors provides only field name and translated
error message. We''ve got a simple workaround for this issue:
module ActiveModel
class Errors
def error...
2008 Jan 14
1
Problems with forms
hello all
i''m a newbie on mechanize, but already had some success.
But now i''m in a real problem :
The following HTML-Code is not parsed corect, not all form element are
found. I''can''t change the server-code.
How to fix ?
HTML-Site
------X-----------------------------------------------------------------------X-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD