How to show error messages in pop up or confirm screen?


#1

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


#2

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


#3

even for validation models ?
THanks!!!