formular
formular copied to clipboard
Form builder for Ruby. Fast, Furious, and Framework-Agnostic.
Hi Fran. Unless I'm missing something HAML support ( Haml 5.0.4 with corresponding cells-haml) is available out of the box ( I haven't tried hamlit). Just added a test &...
I forked the exemple project et migrated templates to haml to show the problem (only with one field) https://github.com/elbouillon/gemgem-sinatra
Checkboxes with collection now support only one checked checkbox, when select with `multiple: 'multiple'` support multiple selected items. I suggest change method in `Formular::Element::Modules::Checkable` ```ruby def is_checked? !options[:checked].nil? || reader_value...
Having a serialized array attribute in a model ```ruby model Sample serialize :links, Array, prepopulate: -> (*) { self.links = links + Array.new(3 - self.links.size, '') } end ``` and...
This layer of complexity shouldn't be necessary an element should have 1 HTML block. With wrapped controls, the Wrappers should be their own Element and the builder should reference those...
Now bootstrap have officially released v4 we should update any changes since Alpha5 & 6. Particular areas that need completely reworking are validation (error messages), grids (heavier use of flex...
when validating this ```required(:activity_ids).filled(:array?) { each(:int?, :activity_exists?) }``` I get the following error hash, if the provided activity_id does not exist: ```{:activity_ids=>[[0, ["This activity does not exist."]]]}``` formular displays this...
*I'm using formular master branch* ```ruby form(model, path) do f.input :image, type: :file end ``` When using input element with type: :file, enctype="multipart/form-data" should be added to the form tag.
@fran-worley I put up something quick and dirty that at least works for me, let me know if this is the right direction you want to take. Basically options[:label] when...