Closed siruguri closed 9 years ago
We haven't updated formtastic-bootstrap for Formtastic 3 at all yet, so this is probably the first of many changes that would be needed. Are you seeing that Formtastic 3 works besides this issue?
My bad, I read "Bootstrap 3" and my brain said "Formtastic 3", in your README.
So I have a very simple form, and yes, it "works" for the string
, date_select
, and select
pickers I used.
FWIW, I tried to compare rake spec
with the formtastic
dependency bumped to 3.0. I am not quite sure I'm doing the right thing - I found that in fact your gemspec
already says >=2.2
- doesn't that mean you would also get Formtastic 3.0 in your tests, if you updated your bundle for whatever reason?
At any rate, I found that 3.0 doesn't seem to generate more errors - 2.3 also generates plenty of rake spec errors.
But feel free to close/postpone this issue until you are supporting Formtastic 3 formally.
I would want to figure out if we need to selectively include Base::GroupedCollections
based on which version of Formtastic is available.
Or include it only if it's defined? That would be a backward compatible change that would at least get folks with Formtastic 3 going. s.
On Wed, Sep 24, 2014 at 1:57 PM, Aaron Stone notifications@github.com wrote:
I would want to figure out if we need to selectively include Base::GroupedCollections based on which version of Formtastic is available.
— Reply to this email directly or view it on GitHub https://github.com/mjbellantoni/formtastic-bootstrap/issues/108#issuecomment-56737594 .
something along the lines of
if Formtastic::Inputs::Base.const_defined?(:GroupedCollections)
include Formtastic::Inputs::Base::GroupedCollections
end
in Formtastic-Bootstrap::inputs::base::groupedcollections
Resolved by #116
In
lib/formtastic-bootstrap/inputs/select_input.rb
, this line should be deletedDue to this commit made in Formtastic.