Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion custom validation method on nested model
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Benny  
View profile  
 More options Nov 5 2012, 2:26 pm
From: Benny <benn...@gmail.com>
Date: Mon, 5 Nov 2012 11:26:02 -0800 (PST)
Local: Mon, Nov 5 2012 2:26 pm
Subject: Re: custom validation method on nested model

Never mind I figured this out.

On Friday, November 2, 2012 12:26:41 PM UTC-4, Benny wrote:

> I can't get the field_with_errors div's to wrap around nested fields in a
> fields_for block when using a custom validation method in the parent model.
> e.g. there needs to be at least one order detail record associated with an
> order. I add the error to the parent model errors hash however I can't get
> the key to match the form field so that the wrapping div's get applied.
> This does work for local attributes and for validation in the actual nested
> model. Can anybody tell me how to get the keys in the error's hash to match
> the nested fields in my form?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.