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
1
vote
1 answer

Is there any way to pass index to a nested form partial in ActiveAdmin?

Is there any way to pass index to activeadmin's nested form partial? The code I have: <% variant.has_many :variant_currencies, allow_destroy: true, heading: false, new_record: 'Add new price modifier' do |variant_currency| %> <%…
Alex Zakruzhetskyi
  • 1,383
  • 2
  • 22
  • 43
1
vote
1 answer

ActiveAdmin with Rails 5 API mode

I'm trying to get activeadmin working with Rails 5 API mode. There's several articles about this, and they pretty much all say the same thing. First, make the application controller extend from ActionController::Base instead of…
blop
  • 31
  • 1
  • 7
1
vote
1 answer

Customize "view" action in ActiveAdmin

I am new to ruby on rails and working on a project with ruby on rails 4th version. right now i was changing the view of the order in active admin but i am getting errors. ActiveAdmin.register Order do permit_params :id, :order_completed,…
Muzammil Hussain
  • 107
  • 1
  • 12
1
vote
0 answers

Use activeadmin-ajax_filter gem in nested forms

I'm using ActiveAdmin for an admin panel. In the nested form, I need to use some filtering, for example, in the dropdown I need to select an option name, and in the second dropdown should be displayed the option's values. For this, I want to use…
Alex Zakruzhetskyi
  • 1,383
  • 2
  • 22
  • 43
1
vote
2 answers

Could not find generator 'active_admin:install'

I just removed active_admin from my rails app and now trying to add active_admin again. getmfile: gem 'activeadmin', github: 'activeadmin' and I ran this command: rails g active_admin:install and I met this error: Running via Spring preloader in…
WebGuru
  • 189
  • 2
  • 13
1
vote
1 answer

Is there any way to use formtastic in activeadmin batch action form?

According to activeamdin document, we can do: batch_action :flag, form: { type: %w[Offensive Spam Other], reason: :text, notes: :textarea, hide: :checkbox, date: :datepicker } do |ids, inputs| # inputs is a hash of all the form fields…
A.Ho
  • 27
  • 1
  • 5
1
vote
1 answer

Cannot build nested polymorphic associations'. Are you trying to build a polymorphic one-to-one association

I have had a similar situation where i had Activities which has one Task which has one taskable and building the task would also build the taskable, like so: def new @activity = Activity.new @activity.task = @activity.build_task end Now i…
Lance
  • 701
  • 6
  • 25
1
vote
3 answers

Rails ActiveAdmin not Working on Heroku but works on Localhost

I installed ActiveAdmin gem on an existing project, and I was able to Login on Localhost and following the documentation everything works perfectly on localhost. But on Heroku I can't login. After running heroku run rake db:seed I can't login with…
mayorsanmayor
  • 2,870
  • 4
  • 24
  • 44
1
vote
1 answer

Inserting a space after appending multiple actions in activeadmin

I'm having an issue while trying to append multiple actions in the index page in activeadmin. I used this code to append two actions in activeadmin. actions defaults: false do |resource| item "View", resource_path(resource) unless…
koko1
  • 19
  • 5
1
vote
1 answer

ActiveAdmin deletes associations when simply trying to render show page

Here's the show.html.arb file: attributes_table_for resource do row :id row :state row :request_type row :assignee row :assigner row :unassigned row :deleter end attributes_table_for resource.request do row :id end And here's the…
Nick Res
  • 2,154
  • 5
  • 30
  • 48
1
vote
1 answer

ActiveAdmin Inherited Ressource override doesn't work with multiple namespaces?

I'm using ActiveAdmin with no default namespace (config.default_namespace = false). I have a User Resource without namespace as well as an User Resource in the :admin namespace. Both use custom update methods to achieve different behavior (users can…
Florian Koch
  • 1,372
  • 1
  • 30
  • 49
1
vote
2 answers

Can you add separators to dropdown menus in activeadmin

Is there a way to add separators to a dropdown menu in activeadmin? For example, if I wanted a separator between the first and second items, how can I do that? menu.add label: 'Tasks', priority: 10 do |tasks| tasks.add label: 'Add News…
Chris Mendla
  • 987
  • 2
  • 10
  • 25
1
vote
1 answer

Remove header conditionnally in active admin on rails5

I need to embed my active admin pages in a parent application. The active admin page will be shown in an iframe and I need to remove the header and footer on the default index, show and edit pages if the url query param embedded=true. I proceed…
Jaycreation
  • 2,029
  • 1
  • 15
  • 30
1
vote
2 answers

Rails - ActiveAdmin create relationship count column sortable

I am working on ActiveAdmin and I am trying to display a column name Active Jobs with a count There are three models involved in getting this count 1. Staffroom 2. StaffroomPage 3. Job class StaffroomPage < ActiveRecord::Base belongs_to…
Saadia
  • 856
  • 1
  • 12
  • 32
1
vote
1 answer

active admin global sidebar , like wordpress

As per AcitveAdmin Docs , it is possible to add a sidebar per resource. but what I would like to achieve is having something like wordpress sidebar that shows everything at the sidebar , just like the navbar links (which show the selected resource)…
Ayed
  • 373
  • 5
  • 17
1 2 3
99
100