Merge pull request #1375 from PuGGee/master
Add docs for #input method with block
This commit is contained in:
commit
6f537ed98e
|
@ -48,6 +48,11 @@ module SimpleForm
|
||||||
# label + input + hint (when defined) + errors (when exists), and all can
|
# label + input + hint (when defined) + errors (when exists), and all can
|
||||||
# be configured inside a wrapper html.
|
# be configured inside a wrapper html.
|
||||||
#
|
#
|
||||||
|
# If a block is given, the contents of the block will replace the input
|
||||||
|
# field that would otherwise be generated automatically. The content will
|
||||||
|
# be given a label and wrapper div to make it consistent with the other
|
||||||
|
# elements in the form.
|
||||||
|
#
|
||||||
# == Examples
|
# == Examples
|
||||||
#
|
#
|
||||||
# # Imagine @user has error "can't be blank" on name
|
# # Imagine @user has error "can't be blank" on name
|
||||||
|
|
Loading…
Reference in New Issue