-
Notifications
You must be signed in to change notification settings - Fork 219
Doesn't work with country_select version 2.0.0+ #101
Comments
The workaround is to put this into class FormtasticBootstrap::Inputs::CountryInput
def to_html
bootstrap_wrapping do
builder.country_select(method, input_options, form_control_input_html_options)
end
end
end (BTW for formtastic-bootstrap version < 3.0.0 the last param should be called |
Would you prefer if we force the newer version in our gem requirements, or is there a clean way to be compatible to both versions? Monkey patching in an initializer is not an ideal long term solution. |
We definitely should make it backward compatible. We could base it on |
In other words, I think that it's necessary to be backwards compatible with the soon-to-be old version. I'm perfectly fine with version constrains and different behaviour based on that. |
Could you test this with the newly posted formtastic-bootstrap 3.1.0, which works with the new Formtastic class finder and let me know if it works / still broken? |
country_select version 2.0.0 (not yet released) introduces a number of big changes. One among them is a different syntax for
country_select
view helper:(source)
Which is incompatible with formtastic-bootstrap's invocation:
(source)
The exact same issue is present on latest
formtastic
gem as well: formtastic/formtastic#1008The text was updated successfully, but these errors were encountered: