ruby-on-rails – ActiveAdmin中的ArgumentError :: Devise :: Sessions #new Rails 4

我正在使用rails 4 activeadmin在 ruby 1.9.3p392上运行.

当我要去的时候

http://127.0.0.1:3000/admin/login

我得到一个错误

ArgumentError in ActiveAdmin::Devise::Sessions#new

Showing C:/Ruby/lib/ruby/gems/1.9.1/bundler/gems/active_admin-85b9f8164809/app/views/active_admin/devise/sessions/new.html.erb where line #5 raised:

wrong number of arguments (3 for 2)

提取的来源(第5行):

<h2><%= title "#{render_or_call_method_or_proc_on(self,active_admin_application.site_title)} #{t('active_admin.devise.login.title')}" %></h2>

<% scope = Devise::Mapping.find_scope!(resource_name) %>
<%= active_admin_form_for(resource,:as => resource_name,:url => send(:"#{scope}_session_path"),:html => { :id => "session_new" }) do |f|
  f.inputs do
    resource.class.authentication_keys.each { |key| f.input key,:input_html => {:autofocus => true}}
    f.input :password

解决方法

在这里有同样的问题,我解决了从我的Gemfile中删除gem“Meta_search”.

相关文章

validates:conclusion,:presence=>true,:inclusion=>{...
一、redis集群搭建redis3.0以前,提供了Sentinel工具来监控各...
分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣...
上一篇博文 ruby传参之引用类型 里边定义了一个方法名 mo...
一编程与编程语言 什么是编程语言? 能够被计算机所识别的表...
Ruby类和对象Ruby是一种完美的面向对象编程语言。面向对象编...