Manoj,
try this in the model:
validates_presence_of :name, :message => "can't be blank"
Regards,
Seeni Rafiyullah Khan A,
Skype id: rafiyullah.railsfactory | +91 9786832092 | rafigl...@gmail.com
*In Every moment, thank God.*
On Fri, Jul 20, 2012 at 4:17 PM, manoj c. wrote:
> Hi,
>Please
Hi,
Please Help me,in a model i gave like validates_presence_of :name,now
i
need to display error message like "name is required" while clicking
form submission button when leaving text box for name as empty,how
to do this ??
--
Posted via http://www.ruby-forum.com/.
--
You received this mes
2 matches
Mail list logo