我现在浏览了许多文章,其中有一些涉及到这一点,但似乎没有一个能解决我遇到的问题。我已经安装了 ActiveAdmin 并且一切正常,直到我尝试推送到 heroku。现在我收到以下错误,不知道如何解决。
NoMethodError in ActiveAdmin::Devise::Sessions#new
Showing /Users/gregoryhooven/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-6c9e22ab0922/app/views/active_admin/devise/sessions/new.html.erb where line #7 raised:
undefined method `[]' for nil:NilClass
xtracted source (around line #7):
<% 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
f.input :remember_me, :label => t('active_admin.devise.login.remember_me'), :as => :boolean if devise_mapping.rememberable?
end