I am using active scaffold in my application. i am facing problem in
model validation.
for example
I have two models work and parties.
work has fields work_name, work_description, work_obtained_date
and party has fields party_name, party_description
these all fields are required.
when i create a work and validations are failed it shows proper
message for work like name is required description is required. But
for party it only says party is not valid
and when i create a party and validations are failed it shows proper
message for party like name is required description is required. But
for work it only says work is not valid
i have set all the custom messages in both models
in work model
validates_presence_of :work_name, :message => "can not be blank"
validates_presence_of :work_description, :message => "can not be
blank"
in party model
validates_presence_of :party_name, :message => "can not be blank"
validates_presence_of :party_description, :message => "can not be
blank"
can some one help me please. i need the help on urgent basis.
thanks in advance
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---