3,616 questions
0
votes
1
answer
42
views
ActiveAdmin complaining about ransackable_atttributes
I'm currently trying to migrate to activeadmin 3.0.0, which requires ransackable 4.3.0. This breaking change require to add ransackable_attributes and ransackable_associations as class methods in my ...
0
votes
2
answers
57
views
How to pre-compile css for rails 8 and activeadmin version 4
I am running rails 8 and active_admin version 4.0.0-beta16 and
I managed to update app/assets/stylesheets/active_admin.css
with this content:
@import "tailwindcss";
The CSS works well ...
1
vote
0
answers
206
views
ActiveAdmin 3.3.0 DELETE actions not working with Rails 8.0.2
I'm having an issue with ActiveAdmin 3.3.0 in my Rails 8.0.2 application where DELETE actions are not working. When an admin user clicks the "Delete" link, the application performs a GET ...
0
votes
1
answer
46
views
Devise send_reset_password_instructions invalid token in Active Admin Rails
I have this problem in ActiveAdmin. When I try to reset a user's password with devise send_reset_password_instructions.
member_action :reset_password, method: :get do
resource....
-2
votes
1
answer
48
views
Testing Active Admin Page with RSpec
In my Rails application, ruby 2.6.5, rails 6.1. I use Active admin and I created this page. How can I create some tests for this using rspec?
I have already created tests for the model and the ...
0
votes
1
answer
35
views
ActiveAdmin has_many helper is only displaying one record
I have a very strange situation in my app where one use of ActiveAdmin's form.has_many helper is working as expected, and a new near-copy of it is only showing the last record in the list.
Here's my ...
1
vote
1
answer
64
views
How to customize the css of ActiveAdmin gem?
The back end added the gem ActiveAdmin on my website (version 1.1.0), but I don't find the css file to edit the colors and the design.
Where is it?
I checked on the assets folders but nothing. I also ...
1
vote
1
answer
37
views
How to show the new-resource form below the ActiveAdmin index page?
A client requested to have the ActiveAdmin "New Resource" form show up underneath the index_as_table, in order to be able to refer to existing rows while creating the new one. I thought I ...
0
votes
1
answer
124
views
Active Admin interface is broken with error `Uncaught ReferenceError: $ is not defined` in browser console
I run a Ruby on Rails application with Active Admin as an admin backend.
My setup is:
Ruby 2.5.9
Rails 5.2.8.1
ActiveAdmin 2.9.0
Webpacker 4.3.0
I migrated the application from an older VM and updated ...
1
vote
1
answer
559
views
Creating an activeadmin filter on a scope in ransackable_scopes
I'd like to create an activeadmin filter on a page for a model that has an association with the User model. I'd like to use the custom scope matches_name, which combines the first_name and last_name ...
0
votes
0
answers
108
views
How to do a same day date_range filter in ActiveAdmin
I have a situation where I have two models, where there is a 1:1 association between them and some method delegation:
class Sale < ApplicationRecord
has_one :receipt
delegate :date, to: :...
0
votes
1
answer
275
views
SassC::SyntaxError in ActiveAdmin::Devise::Sessions#new
I am using arctic_admin gem . Following https://github.com/cprodhomme/arctic_admin
I have added in the gem file
gem 'arctic_admin'
in /app/assets/javascripts/active_admin.js file
//= require ...
0
votes
1
answer
119
views
Rails ActiveAdmin batch_action with form causing assets:precompile error
We use Rails ActiveAdmin and we are hitting strange asset compiling error. The error causes our rspec CI job to fail in github. It's failing with a database connection error like so:
Run bundle exec ...
1
vote
0
answers
82
views
Active Admin Comments: "Comment wasn't saved, text was empty"
I've got a brand new rails app (7.1.0) (with a few models) that I have set up with ActiveAdmin and the only model that works is my Admin model. I noticed that the admin model is the only table that ...
1
vote
2
answers
833
views
Unable to load ActiveAdmin models with Ransack 4
I'm getting the infamous:
Ransack needs ActiveStorage::Attachment attributes explicitly
allowlisted as searchable. Define a ransackable_attributes class
method in your ActiveStorage::Attachment model....
4
votes
2
answers
952
views
Activeadmin Rails 7 Tailwind Issue
Just install active_admin in rails 7 and ruby 3.1.0
gem 'activeadmin', github: 'activeadmin/activeadmin', branch: 'master'
It add two style files. One is active_admin_old.scss
and other is ...
0
votes
0
answers
324
views
How can I input an array of integers as a form field using ActiveAdmin and formtastic
Using ActiveAdmin 2.9.0, Rails 6 and Postgres 14.6.
I have model Persona that looks like this in the schema:
create_table "personas", force: :cascade do |t|
t.string "orcid"
t....
1
vote
1
answer
1k
views
How to use ActiveAdmin with TailwindCSS Rails without Tailwind styles breaking
I am using tailwindcss-rails gem along with Flowbite(fyi). I developed a whole app on top of those two and recently I needed to add an admin gem to the app. I really like ActiveAdmin, but as soon as I ...
1
vote
1
answer
165
views
ActiveAdmin: render index table of has many resource in show page of parent
Trying to build this with Active admin 3.0. This seems so basic to me that I feel I must be missing something.
Let's assume I have a Store model and an Employee model and a store has many employees ...
0
votes
1
answer
513
views
Paper_trail gem stopped working when upgraded ransack to 4.0.0
In my rails 7.0.4 app I use:
activeadmin 3.0.0
ransack 4.0.0
paper_trail 15.0.0
I have the page for filtering and sorting history of changes to the data:
ActiveAdmin.register PaperTrail::Version do
...
0
votes
1
answer
131
views
Is there a REST Api for Active Admin?
Is there a way to access the data from Active Admin?
Im creating a mobile app that will connect to an active admin website.
I need to retrieve data from the website.
0
votes
2
answers
135
views
How do i solve friendly id issue in active admin
I am using Rails 7 Active admin
I have Project that is Workshop Project that is related to organizing workshops, booking them etc.
I am using Friendly ID Gem . The url looks like http://127.0.0.1:3000/...
7
votes
2
answers
1k
views
active admin gem error message just following the instructions
I am using ruby 3.1.3, rails 7.0.5 and activeadmin 3.0.
I just followed the installation instructions from the activeadmin website, but I got the following error:
ActionView::Template::Error (Ransack ...
0
votes
1
answer
93
views
Ruby on Rails | String -> Links in ActiveAdmin
I have a SQL function in my ROR model
def permit_needing_maps_link
rows = ActiveRecord::Base.connection.exec_query("select dbo.NeedMapsList(#{self.CONO})").rows
rows.flatten![0] if !rows....
2
votes
2
answers
639
views
Issue with setting up actioncable
My project is set up as rails only API application, and flagged with no javascript. they have added active admin to it and made necessary changes to it making javascripts folder in assets as required ...