Sha256: aec68da44ece766dc7c2d296f266ec66d4c4301d0e7c8f3eb1cf2866ecd86729

Contents?: true

Size: 312 Bytes

Versions: 7

Compression:

Stored size: 312 Bytes

Contents

class BootstrapController < ApplicationController
  def form
    @collection = [
      Address.new(id: 1, street: "Foo"),
      Address.new(id: 2, street: "Bar")
    ]

    @user = User.new

    @user_with_error = User.new
    @user_with_error.errors.add(:email)
    @user_with_error.errors.add(:misc)
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/bootstrap_form-4.5.0/demo/app/controllers/bootstrap_controller.rb
bootstrap_form-5.0.0 demo/app/controllers/bootstrap_controller.rb
bootstrap_form-4.5.0 demo/app/controllers/bootstrap_controller.rb
bootstrap_form-4.4.0 demo/app/controllers/bootstrap_controller.rb
bootstrap_form-4.3.0 demo/app/controllers/bootstrap_controller.rb
bootstrap_form-4.2.0 demo/app/controllers/bootstrap_controller.rb
bootstrap_form-4.1.0 demo/app/controllers/bootstrap_controller.rb