gregbell/active_admin — Issue #1070: New Session View Error when Updating to 0.4.x
Author: chfonline
Created: 2012-02-25 02:50:40+00:00
State: open

When updating to 0.4.x on Rails 3.1.3, I receive the following error when loading the login page (app/views/active_admin/devise/sessions/new.html.erb):

>ActionView::Template::Error (wrong number of arguments (6 for 5)):
6: f.inputs do
7: Devise.authentication_keys.each { |key| f.input key, :input_html => {:autofocus => true}}
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"

When reverting to 0.3.4, the error goes away. My Gemfile includes:

```
source 'http://rubygems.org'

gem 'rails', '3.1.3'
gem 'mysql2'

group :assets do
gem 'coffee-rails', "~> 3.1.0"
gem 'uglifier'
end

gem 'sass-rails', "~> 3.1.0"
...
gem 'jquery-rails'
gem 'simple_form'
...
gem 'devise'
...
gem 'activeadmin', "~> 0.4.2"
gem 'kaminari'
...
```

Any guidance would be appreciated. Thanks!