Questions tagged [activeadmin]

Active Admin is a Ruby on Rails plugin for generating administration style interfaces. It abstracts common business application patterns to make it simple for developers to implement beautiful and elegant interfaces with very little effort.

Active Admin is a Ruby on Rails plugin for generating administration style interfaces. It abstracts common business application patterns to make it simple for developers to implement beautiful and elegant interfaces with very little effort.

Documentation can be found at https://activeadmin.info/.

3600 questions
41
votes
9 answers

Activeadmin disabling the "new resource" method

I'm using Activeadmin for the admin interface on an app I'm working on (loving it) and I am curious if there is a way to disable the "New Resource" link in the upper-right corner of the resource show page? The particular resource I'm using is nested…
YuKagi
  • 2,451
  • 3
  • 21
  • 26
41
votes
4 answers

File upload with Activeadmin Rails using paperclip

I use Active admin as my rails application backend. I want to make a file upload. How can I accomplish this functionality?
Sebastien
  • 6,640
  • 14
  • 57
  • 105
36
votes
3 answers

How to Properly Configure Rails 4.1 Enums in ActiveAdmin

I've got a Rails 4.1 app in which I use an enum to represent the privacy level of an object. In my schema: t.integer "privacy_level", default: 0 In my model: enum privacy_level: { privacy_private: 0, privacy_trusted: 1, privacy_public: 2 } In my…
Pop-A-Stash
  • 6,572
  • 5
  • 28
  • 54
33
votes
3 answers

Ruby/Rails - Remove ActiveAdmin from my application

I had a good time playing with Active Admin the administrative framework within my application. http://activeadmin.info/ When I installed it I ran rails g active_admin:install rake db:migrate rails g active_admin:resource product and it generated…
ChrisWesAllen
  • 4,935
  • 18
  • 58
  • 83
32
votes
3 answers

How to add a virtual attribute to a model in Ruby on Rails?

I'm working on a RubyonRails/ActiveAdmin application. My RoR version is 4.2.5 and AA version is 1.0.0. I have a model Message as follows. class Message < ActiveRecord::Base belongs_to :user validates :user, :content, presence: true def…
moorara
  • 3,897
  • 10
  • 47
  • 60
32
votes
6 answers

How to display only the value in edit page in Active Admin

I have a edit form in Active Admin. I need some field as read only. My current edit page is like I need the page look like this How can this be done. My code for the edit form page is like form :html => { :enctype => "multipart/form-data" }…
Amal Kumar S
  • 15,555
  • 19
  • 56
  • 88
30
votes
2 answers

Setting root page to activeAdmin default login page

Im having dificulty in setting the root page in may Rails app to the default login page of the Active Admin gems, at localhost:3000/admin/login. Here's my routes.rb: TestActiveadmin::Application.routes.draw do ActiveAdmin.routes(self) …
Gerson Scanapieco
  • 723
  • 1
  • 7
  • 9
29
votes
7 answers

Import CSV Data in a Rails App with ActiveAdmin

i want to upload CSV files through the activeadmin panel. on the index page from the resource "product" i want a button next to the "new product" button with "import csv file". i dont know where to start. in the documentation is something about…
user993460
  • 821
  • 2
  • 8
  • 8
29
votes
5 answers

ActiveAdmin: how to leave user password unchanged?

I am using ActiveAdmin as my administration backend in my rails app. Basically, I have an admin_user and a user model. When I create a new user from an admin account, I specify an email and a password, that is ok. Let's say I then want to modify…
Luc
  • 16,604
  • 34
  • 121
  • 183
28
votes
6 answers

My css file is overridden due to activeadmin

First I have created an active_admin css file as app/assets/stylesheets/active_admin.css.scss /* active_admin.css.scss */ @import "active_admin/mixins"; @import "active_admin/base"; /* application.css.scss*/ @import "active_admin.css.scss" So I…
Petran
  • 7,677
  • 22
  • 65
  • 104
28
votes
9 answers

Active Admin: How to set page title?

This seems like it should be relatively simple, but I've had some trouble tracking down the answer: How do you set the page title in ActiveAdmin?
user456584
  • 86,427
  • 15
  • 75
  • 107
27
votes
3 answers

rails ActiveAdmin nested form has_one accepts_attributes_for formtastic issue

I am using ActiveAdmin and Rails 3.1 -- having problem understanding whether the following is a bug, or if there is some way to do it correctly that I am not understanding. I am trying to use a nested model with a has one relationship, so that I can…
27
votes
5 answers

How can I customize the active admin layout?

I need to customize the active admin layout, but how can I do it?
zolter
  • 7,070
  • 3
  • 37
  • 51
26
votes
5 answers

ActiveAdmin actions

is there a way to specify in ActiveAdmin's index page of a model what actions are allowed, things like: index do actions :edit end index do actions only: :edit end do not work. What's the correct syntax? Appreciated. bundle show…
26
votes
5 answers

undefined method `database_authenticatable' for #

I am using Active Admin gem for my small application based on Quiz. But when I execute rake db:migrate it gives me error. Following is the trace of the command : $ rake db:migrate RAILS_ENV=production --trace ** Invoke db:migrate (first_time) **…