OK - now that I have written validations for my activeldap models and check 
them before attempting to save so I can provide normal language error messages 
to users by using @MODEL.validate? and setting flash[:error] with 
@MODEL.validate before rendering edit/new screen again.

I find that what I lost was the nice .field_with_errors 'class' apparently 
automatically generated with @MODEL.save errors (seems to be a new Rails 3.1 
thing but perhaps it was there in Rails 2.x and I never actually noticed)

Is there some way I can essentially duplicate and get the errors from a save 
without actually calling @MODEL.save?

Bonus question along the same lines... If I have a input field that is say a 
collection and is not the actual stored field but rather one whose data is 
processed into the ActiveModel saved record before saving, can I assign the 
error to that field somehow?

-- 
Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [email protected]
1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com 

Need help communicating between generations at work to achieve your desired 
success? Let us help!

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en.

Reply via email to