Forme 0.10.0 Released #55
jeremyevans
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Google Group Post: https://groups.google.com/g/ruby-forme/c/lNtABLMHNlE
Google Group Date: Tue, 1 Jul 2014 08:30:02 -0700
Google Group Sender: [email protected]
Forme 0.10.0 has been released.
CHANGELOG for 0.10.0:
Use #[] instead of #send to get input value for object forms if object is
a hash
Add Form#each_obj, for iterating over an Enumerable of objects, using
with_obj for each object
Add Form#with_obj, for changing a Form's object and namespace temporarily
Support changing the namespace for a Form temporarily using
with_opts(:namespace=>['ns1', 'ns2'])
Use current namespace for form object inputs if :id/:name/:key is not
specified
Remove SequelForm#nested_associations accessor methods, no longer
necessary
Support changing the object for a Form temporarily using
with_opts(:obj=>new_obj)
Add :table, :tr, :ol, and :fieldset_ol wrappers, which automatically set
wrapper and inputs_wrapper appropriately
Add subform :grid option in Sequel plugin, for more compact editing of
nested *_to_many associations
Make table inputs_wrapper accept a :labels option and automatically set
up th tags with the labels for each column
Form#inputs now accepts a :nested_inputs_wrapper option to set default
inputs_wrapper transformer inside the block
Add tr inputs_wrapper and td wrapper, for horizontal layout of inputs
inside a table
Form#inputs now accepts transformer options (e.g :wrapper) and
automatically calls with_opts
Remove Form#format and Form#serialize
Remove Form#{formatter,labeler,error_handler,wrapper,inputs_wrapper}
accessors
Add Form.with_opts method to override opts for the given block
Remove Form#use_serializer and Serializer module
table inputs_wrapper now respects the :legend and :legend_attr options,
using a caption
ol, div, and table inputs_wrappers now respect the :attr option
Make subform always use the inputs_wrapper, even if :inputs is not given
Allow input_defaults to work with symbol keys for inputs that use symbol
types
Support Form :values option, for automatically setting value attributes
for inputs from submitted params
Support :autofocus option for setting autofocus attribute, similar to
:required and :disabled
Add Forme.default_add_blank_prompt for setting default prompt used for
:add_blank option
Support radioset and checkboxset Input types
Support :key and :key_id options for Inputs, for automatically setting
name/id attributes based on current namespace
Move namespace handling from Sequel plugin into the core
Thanks,
Jeremy
Beta Was this translation helpful? Give feedback.
All reactions