ActiveModel::Errors & ActionDispatch::Flash::FlashHash - thuy-econsys/rails_app GitHub Wiki ActiveModel::Errors errors.add(attribute, type = :invalid, **options) ActionDispatch::Flash::FlashHash How to Use Flash Messages in Rails | RubyGuides