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
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"
bundle update formtastic
then restart your server (if you have it running)..
and should work ok...