formtastic和bootstrap兼容性
问题描述:
是所有formtastic输入类型应该在使用gem'formtastic-bootstrap'时工作?formtastic和bootstrap兼容性
在我的情况:
:as => :select
工作正常
但
:as => :date_select
给Formtastic :: UnknownInputError
和
:as => :radio
确实显示单选按钮,但与黑点混合(如在没有CSS的网页中)!?
我的Gemfile包含:
gem 'formtastic', " ~> 2.1.1"
gem 'formtastic-bootstrap'
gem 'twitter-bootstrap-rails'
我的布局/ application.html.erb
<%= stylesheet_link_tag "application", :media => "all" %>
答
你可能有更好的运气与formtastic自举的一个新版本。
支持:date_select已被added recently和formtastic-bootstrap 2.0.0支持:date_select。