有一个奇怪的设计问题。
代码如下所示:
%ul.nav.nav-tabs
%li.active
%a{ :href => "#log_in"}
=t :log_into_your_account
%li
%a{ :href => "#"}
=t :not_yet_registered
.tab-content
.tab-pane.active#log_in
%h2 Sign in
= semantic_form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|
= f.semantic_errors
= f.inputs do
= f.input :email
= f.input :password
-if devise_mapping.rememberable?
.clearfix
= f.label :remember_me
.input
= f.check_box :remember_me
= f.buttons do
= f.commit_button :button_html => {:class => "btn btn-success"}
= render :partial => "devise/shared/links"
一般来说,我该如何诊断这样的事情?
答案 0 :(得分:0)
宝石中有一个错误。现在修好了。
gem "formtastic", "~> 2.1.1"