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
16
votes
1 answer

Paperclip + Active_admin + Rails 3.0.10 multiple images

I have a crud with paperclip and multiple images' i implement active_admin and the product update fine, but, i can't not upload or edit the multiple images, the form i have is this: form :html => { :multipart => true } do |f| f.inputs "Details"…
Stanmx
  • 455
  • 5
  • 15
16
votes
5 answers

ActiveRecord::ReadOnlyRecord when using ActiveAdmin and Friendly_id

I started using ActiveAdmin recently in a project and almost everything works great but I'm having a problem when using it in combination with the friendly_id gem. I'm getting ActiveRecord::ReadOnlyRecord thrown for my forms [i believe] because of…
holden
  • 13,471
  • 22
  • 98
  • 160
16
votes
2 answers

Rails ActiveAdmin. How to set default value?

I have code like this: ActiveAdmin.register Post do form do |f| f.inputs "Post Details" do f.input :title f.input :body f.input :published_at, :as => DateTime.now end f.actions end I want the field :published_at (which is…
Seybo Glaux
  • 787
  • 1
  • 7
  • 16
16
votes
2 answers

How to set a parent menu priority in ActiveAdmin?

I have a couple of models in my Ruby on Rails application like "Plan", "Tester", "Module", etc. Using activeadmin gem, I would like to have a page for each of these entities and place each under a couple of different menus. So my code looks like the…
moorara
  • 3,897
  • 10
  • 47
  • 60
16
votes
2 answers

ActiveAdmin ForbiddenAttributesError

i am a brand new for Ruby on Rails. I am using a ActiveAdmin and i have a problem with creating a AdminUser ActiveModel::ForbiddenAttributesError in…
dPanda13
  • 265
  • 1
  • 3
  • 9
16
votes
1 answer

How can I optimize active_admin

When I use active_admin with tables that have 5000+ records in them everything becomes very slow. How I can optimise it? Does anybody know some plugins which would allow me to load the data asynchronously?
itdxer
  • 1,236
  • 1
  • 12
  • 40
16
votes
4 answers

How to change how ActiveAdmin displays time (every time)

Since the default time in the database is in utc, I wanted to be able to still display it in the users correct time. To do this I had to take column :created_at and change it into this: index do ... column :created_at, :sortable => :created_at do…
Tom Prats
  • 7,364
  • 9
  • 47
  • 77
16
votes
2 answers

Change default date formatter in active admin

In ActiveAdmin dates are printed in the, supposedly American, format %B %d, %Y %H:%M. E.g. March 19, 2013 13:25 However, my "default" frontend prints this using the default Rails (ISO) format, 2013-03-07 14:12:31 UTC, as seen when dropping a <%=…
berkes
  • 26,996
  • 27
  • 115
  • 206
16
votes
4 answers

Why are my Rails assets getting precompiled twice?

I've noticed my assets seem to get compiled twice, which considerably slows down my deployment, as this step is the most time consuming part: ~/projects/rewportal(mapwidget ✔) rake assets:precompile /home/ruy/.rvm/rubies/ruby-1.9.3-p194/bin/ruby…
Ruy Diaz
  • 3,084
  • 24
  • 36
16
votes
2 answers

How to declare a nested resource in activeadmin?

I have a resource called User and another one called Order. I want Order to be nested inside Users so I can have these…
Bishma Stornelli
  • 2,539
  • 4
  • 22
  • 30
16
votes
5 answers

ActiveAdmin how to sort column with associations

I'm developing an ActiveAdmin app, and I want to sort a column of businesses by their "type". Unfortunately my code is not working. What code should I use to accomplish this? Here is my code... app/models/business.rb class Business <…
Slicekick
  • 2,119
  • 5
  • 24
  • 35
16
votes
4 answers

Insert a non-input row into a Formtasic form

I am using Formtastic 2.1.1 in Rails 3.2 (with Active Admin) and I want to insert a row into my form that does not have an input field present. Is this possible and what is the syntax in the Formtastic DSL to achieve this? Here's an example: form do…
Randy Burgess
  • 4,835
  • 6
  • 41
  • 59
15
votes
6 answers

Active Admin - refresh second drop down based on first drop down, Ruby on Rails

I am using Active Admin Gem on Ruby on Rails. I have a form in which i have selected category and sub category and then accordingly i have to fill the data. So i created two tables in sqlite added in active admin resouce. Every thing is working fine…
Astha
  • 1,728
  • 5
  • 17
  • 36
15
votes
2 answers

Use Carrierwave with Active Admin

Did any of you guys manage to get Active Admin with Carrierwave working? When I installed AA everything worked fine but the image file upload fields were plain text fields so added following: ActiveAdmin.register Club do form do |f| f.inputs…
Cojones
  • 2,930
  • 4
  • 29
  • 41
15
votes
4 answers

Activeadmin form select dropdown update

I have a Category Model and a SubCategory Model and id like the SubCategory select input to refresh depending on the SubCategories that are associated to the specific Category I have selected. form do |f| f.inputs do f.input :title …
Dan Mitchell
  • 844
  • 2
  • 15
  • 34