I just added an active admin to my rails application and I cannot create a new user. I am using the user model that the active administrator creates, with several columns added, such as first name and last name. When I fill out a form for a new user and click on create a new user, this page is updated, but does not save my user and does not go to the page with a successful message.
here is my adminminer model
class AdminUser < ActiveRecord::Base devise :database_authenticatable, :recoverable, :rememberable, :trackable, :validatable attr_accessible :email, :password, :password_confirmation, :remember_me, :first_name, :last_name end
And here is my active admin class
ActiveAdmin.register AdminUser do index do column :first_name column :last_name column :email default_actions end form do |f| f.inputs "User Details" do f.inputs :email f.inputs :first_name f.inputs :last_name end f.buttons end end
ruby-on-rails-3 devise activeadmin
Scott Nov 14 '11 at 19:08 2011-11-14 19:08
source share