Full Error Messages
Join the DZone community and get the full member experience.Join For Free
class User < ActiveRecord::Base validate do |user| user.errors.add_to_base("Country can't be blank") if user.country_iso.blank? end end
<%= error_messages_for :game, :header_message => "Please Try Again!", :message => "We had some problems starting the game:" %>
Opinions expressed by DZone contributors are their own.