我从 Rails 开始(我也是来自 Python 的 Ruby 新手),我目前正在尝试为 Rails 3.2.3(Ruby 1.9.3)设置 ActiveAdmin。我正在遵循本指南,但我无法正确运行它。当我运行rails s
命令访问时,localhost:3000/admin
我得到
NoMethodError in Active_admin/devise/sessions#new
Showing /home/lex/.rvm/gems/ruby-1.9.3-p125/gems/activeadmin-0.4.3/app/views/active_admin/devise/sessions/new.html.erb where line #11 raised:
super: no superclass method `buttons' for #<ActiveAdmin::FormBuilder:0xb429ae0>
我在谷歌上找不到任何有用的东西,这里有什么问题?
如果您需要有关此异常的更多信息,请告诉我。
Extracted source (around line #11):
8: f.input :password
9: f.input :remember_me, :as => :boolean, :if => false #devise_mapping.rememberable? }
10: end
11: f.buttons do
12: f.commit_button "Login"
13: end
14: end