Sha256: 2aebca48fde6f09b8f5bc8c45769cdd7464118d1fc9c48a334699717a59ec1e4
Contents?: true
Size: 479 Bytes
Versions: 2
Compression:
Stored size: 479 Bytes
Contents
class User include ActiveModel::Validations attr_accessor :name, :bio, :gender, :single, :colors, :is_awesome, :is_terrible, :income, :extra, :exception def to_key nil end def persisted? false end end class ApplicationController < ActionController::Base protect_from_forgery def test @user = User.new @user.errors.add(:exception, 'terrible error') @user.errors.add(:is_terrible, 'not checked') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
formatted_form-2.1.1 | test/dummy/app/controllers/application_controller.rb |
formatted_form-2.1.0 | test/dummy/app/controllers/application_controller.rb |