Thank you, added a validation method, and it worked perfectly!

On Jun 4, 8:43 pm, kevinpfromnm <[email protected]> wrote:
> You probably need to do a validation method as I can't think of any
> way of selectively applying a quick validation like you're wanting.
> Another approach would be to put it into the permissions since there's
> separate create and update permissions.
>
> On Jun 4, 9:41 am, Pete <[email protected]> wrote:
>
>
>
> > I have a field which is only required on certain incarnations of a
> > particular model....
>
> > Model is Versions,
>
> > field is => changes
>
> > The changes field I want to be required but not for the first version
> > that is created.
>
> > Can you apply a :required statement with conditions applied to a
> > field?
>
> > I have also tried to add a, before_validation_on_create statement to
> > my model, to populate the field with a default value for the
> > first_version but that does not seem to have worked
>
> > Any ideas, or suggestions?
>
> > Thanks- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.

Reply via email to