Adriano Lul 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
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---