5

刚刚从 rails-3-1 分支安装了 Rails 3.1 rc5 和 ActiveAdmin。安装很顺利,我看到了登录表单。但是,当我使用提供的用户名/密码登录时,出现以下错误:

ActionView::Template::Error (undefined local variable or method `params'
      for #<ActiveAdmin::Views::Pages::Dashboard:0x00000001a59b00>):
    1: render view_factory.dashboard_page

关于这个有什么提示吗?

提前致谢!

4

1 回答 1

8

The rails-3-1 branch has been merged in to master includes a bunch more bug fixes. Can you please use master instead of rails-3-1 and see if that works?

I will work on adding Rails 3.1.rc5 to the test suite to ensure that everything is working as expected.


EDIT: I just pushed a fix to github (7cd0bcc2e953969541c22c2fe5842995f4fbb80d) that fixes this "params" issue. Should work using Github master branch now.

于 2011-07-26T20:39:05.447 回答