I would like to show messages when the validation fails (must be number,
cant be blank, etc) but not in the main page I would like to open a pop
up or better yet put it in a confirm screen where user would read and
thereafter click ok.
Anyone could help me ?
Thanks in advance
ps: sorry for bad english
Adriano L. wrote:
I would like to show messages when the validation fails (must be number,
cant be blank, etc) but not in the main page I would like to open a pop
up or better yet put it in a confirm screen where user would read and
thereafter click ok.
render :update do |page|
if obj.save
ā¦
else
page.alert obj.errors.full_messages.join(ā\nā)
end
end
ā
Rails Wheels - Find Plugins, List & Sell Plugins -
http://railswheels.com
even for validation models ?
THanks!!!