test/dummy/app/models/user.rb in bootstrap_form-0.3.2 vs test/dummy/app/models/user.rb in bootstrap_form-1.0.0
- old
+ new
@@ -1,3 +1,6 @@
class User < ActiveRecord::Base
validates :email, presence: true, :length => { minimum: 5 }
+
+ has_one :address
+ accepts_nested_attributes_for :address
end