Sha256: 5287b3090259643cc570a4ae7a77e17105c27fa3dca79ee95bc3e7f90953f9cb
Contents?: true
Size: 369 Bytes
Versions: 2
Compression:
Stored size: 369 Bytes
Contents
class BaseController < ApplicationController def basic_form @user = User.new end def fields_for @user = User.new @user.addresses.build @user.build_tag end def deep_fields_for @user = User.new (@user.addresses.build).tags.build @user.build_tag end def nested_form_gem @user = User.new @user.addresses.build end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
strong_form-0.0.2 | spec/dummy/app/controllers/base_controller.rb |
strong_form-0.0.1 | spec/dummy/app/controllers/base_controller.rb |