ActiveAdmin Error: no superclass method `buttons'

activeadmin, ruby, ruby-on-rails, ruby-on-rails-3

Solution

For Rails 4+

If you are running Rails 4+ use `f.actions` instead of `f.buttons`. Here's an issue that talks about this change on the ActiveAdmin repo https://github.com/activeadmin/activeadmin/issues/1085

Original answer for OP question in 2012

seems like formtastic 2.2.0 (released today) breaks active_admin and since active_admin requires formtastic >= 2.0.0... put in your Gemfile this

gem "formtastic", "~> 2.1.1"
gem "activeadmin", "~> 0.4.3"

then run

bundle update formtastic

then restart your server (if you have it running)..

and should work ok...

Problem

I'm starting with Rails (and I'm also new with Ruby -coming from Python-) and I'm currentrly trying to setup ActiveAdmin for Rails 3.2.3 (Ruby 1.9.3). I'm following this guide but I was not able to run it properly. When I run the `rails s` command visiting `localhost:3000/admin` I get ``` 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> ``` I could not find anything useful on Google, what's wrong here? If you need more info about this exception please tell me. ``` 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 ```

Original source