会话#升级到Rails4后,新错误的参数数量错误

时间:2014-03-27 02:32:01

标签: ruby ruby-on-rails-4 devise

我更新到Rails4,现在得到“错误的参数数量(3个2)”。

.col-md-6.col-md-offset-3
= form_for(resource, :as => resource_name, url: session_path(resource_name), :html => { :class => "search-form home-search"}) do |f|
    = f.email_field :email, :id => 'beta_form', :class => 'beta_form',  :placeholder => 'Email'
    = f.password_field :password, :id => 'beta_form', :class => 'beta_form',  :placeholder => 'Password'
    = f.submit "Sign In", :class => 'btn btn-primary btn-lg btn-block beta_submit center-block'
= render "devise/shared/links"

1 个答案:

答案 0 :(得分:0)

全套。出于某种原因,我不得不在升级后删除gem'meta-search'。