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
19
votes
2 answers

How to add time picker in Active Admin + Rails 3

I need to display time selector in my active admin form. I have a field start_time which is of type time. Currently I have drop-downs. I need a selector similar to date picker as shown For adding Date Picker I used f.input :start_date, :as =>…
Amal Kumar S
  • 15,555
  • 19
  • 56
  • 88
18
votes
4 answers

How to get current user using devise in rails without using authenticate! on the controller

I'm using devise with rails 3 and i'm trying to create a page which can be viewed by everyone (even those not signed up) but has additional functionality for people who are registered. The problem is that when I call current_user there is no user…
Paul Johnson
  • 1,329
  • 1
  • 12
  • 25
18
votes
5 answers

Is it possible to use ActiveAdmin on a non-ActiveRecord based model (say activeModel or Mongoid, etc)?

Question pretty much says it all. I've got an existing site that supports a well defined API. I need to build up a nice management interface for it, and, since I've used ActiveAdmin to create effect before, I'd love to use it here to. However, I…
DarinH
  • 4,868
  • 2
  • 22
  • 32
18
votes
3 answers

How to get the current user that is logged in via active admin?

I would like to know how to get the current user that is logged in via the active admin GUI? Homepage: http://www.activeadmin.info/ Thanks in advance MODEL admin_user.rb class AdminUser < ActiveRecord::Base # Include default devise modules. Others…
ipegasus
  • 14,796
  • 9
  • 52
  • 76
18
votes
3 answers

how do add a link to an ActiveAdmin view

I have: ActiveAdmin.register User do show :title => :name do attributes_table do row :username row :email row :last_request_at row :foo end end end and I want foo just make a foo in the…
Andrew Arrow
  • 4,248
  • 9
  • 53
  • 80
18
votes
8 answers

Rails: activeadmin, undefined method `per' for #

I installed ActiveAdmin successfully: My gemfile code: source 'https://rubygems.org' gem 'rails', '3.2.10' # Bundle edge Rails instead: # gem 'rails', :git => 'git://github.com/rails/rails.git' gem 'sqlite3' # Gems used only for assets and…
ubuseral
  • 427
  • 1
  • 3
  • 14
18
votes
2 answers

Showing error messages in active admin for has many relationship table

I am facing an issue showing up the error messages in active admin. I get all the error messages displayed with the fields in the form. But in the code below, I need atleast one skill and maximum 5 skills to be added. Else need to throw an error…
Piyush Choudhary
  • 218
  • 1
  • 2
  • 9
17
votes
3 answers

status tag colors with ActiveAdmin

I have a status tag in my AA app that only some colors are showing up. Are there certain colors i can use or can't? can't find much information on this. here is my orders_helper module OrdersHelper def priority_tag_for_order(order) …
DhatchXIX
  • 437
  • 1
  • 3
  • 17
17
votes
7 answers

How to customize one column and display remaining in activeadmin

I am using Active admin gem in my rails app. I added resources book which has 20 columns, now i need to customize only one column and print the remaining as it is. I tried below code ActiveAdmin.register Book do index do column :description do …
Senthil
  • 946
  • 1
  • 14
  • 34
17
votes
4 answers

ActiveAdmin - Filter with default value

Would like to know is that possible to have filter with default value with active admin? This will be helpful for preloading the data for the admin user. filter :country, :default=>'US'
TonyTakeshi
  • 5,869
  • 10
  • 51
  • 72
17
votes
3 answers

How can I change the default URL of ActiveAdmin?

By default, ActiveAdmin is running under /admin. Is there any way change that?
santschi
  • 231
  • 2
  • 9
17
votes
2 answers

Remove 'Show' link from ActiveAdmin default_actions

I've made a title of my resources as a link to a Show action. Now I want to remove that link form default_actions. actions :all, :except => [:show] Won't do because I need show action to be available. I'le also tried column do |show| links =…
Uko
  • 13,134
  • 6
  • 58
  • 106
17
votes
6 answers

ActiveAdmin Error: no superclass method `buttons'

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…
user765144
16
votes
6 answers

Add custom items at header menu in ActiveAdmin

I want to add a link like link_to ("Edit yout profile", edit_user (current_user)) at header in ActiveAdmin. Is that possible ?!
Gustavo Chaín
  • 903
  • 2
  • 10
  • 16
16
votes
6 answers

How do I use instance variables, defined in the controller, in the view with ActiveAdmin?

I have this: ActiveAdmin.register User do controller do def show @user = User.find(params[:id]) show! end end show do attributes_table do row "User" do link_to @user.display_name, user_path(@user.slug) …
jfedick
  • 1,362
  • 10
  • 17