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
3 answers

create new crud in rails application using activeadmin

i am new in ROR. and install an gem for admin dashboard named as activeadmin, but now i want to create more curd in that admin gem . i cannnot use scafold because it will create functions in app folder. please guide me the better approche
1
vote
1 answer

activeadmin - override strong params for comment

I am trying to add an attribute called category to an active admin comment. I have successfully changed the comment form. When I submit the comment, I get the following: Started POST "/admin/comments" for ::1 at 2017-05-27 08:20:41…
Philip7899
  • 4,599
  • 4
  • 55
  • 114
1
vote
0 answers

active admin strong params on member action

I have an active admin member action that is defined as follows: member_action :mark_as_packed, method: [:get, :post] do @parcel = Parcel.find(params[:id]) if request.post? @parcel.shipping_fees = permitted_params[:shipping_fees] …
Ayed
  • 373
  • 5
  • 17
1
vote
1 answer

How can i save check boxes value to database in active admin?

I am new to ruby on rails and active admin, I need to create check boxes for registration fees. while I checked, the value from checkbox is not saved to the database. can anyone help me ?? form do |f| f.inputs do f.input :name,…
1
vote
1 answer

Override ActiveAdmin resource controller for only some resources

In my app, some of the resources need to be hippa compliant and we do some things to fit in with that need - using ActiveAdmin::Comments as a sort of git commenting system, and hiding the index collection if there's no filtering applied, etc. All…
grimmwerks
  • 491
  • 1
  • 6
  • 21
1
vote
0 answers

ActiveAdmin generating wrong routes for belongs_to association

I'm using Rails 4.2.7.1 with ActiveAdmin 1.0.0 and have the same resource being mentioned in two pages: ActiveAdmin.register Project ActiveAdmin.register Project, as: "Awesome Project" The first one generates routes as admin/projects and the latter…
mrstif
  • 2,736
  • 2
  • 27
  • 28
1
vote
1 answer

ActiveAdmin comments as commit system

I've got a hippa compliant app I'm working on and as part of it I want to use the AA comments as a nested resource / commit system; if there's no comment the create or update should be rejected. I have other nested resources working (including…
grimmwerks
  • 491
  • 1
  • 6
  • 21
1
vote
1 answer

Is it possible to re-arrange product order in a view through Active admin panel in ROR App

I´m working on a E-commerce app. The store manager is able to upload products via active admin. When products are uploaded it is assigned to a category and a label in the active admin panel, that works very well with out problems. The most recent…
DaudiHell
  • 808
  • 10
  • 32
1
vote
2 answers

Active Admin Successful login redirect to User login page

We are facing a issue in active admin successful login the issue is after successful login active admin redirect to user login page i.e http://localhost:3000/users/sign_in . It was working fine earlier but all of sudden may be new update in active…
Code Runner
  • 23
  • 1
  • 4
1
vote
1 answer

Carrierwave Image Upload & Rails 5 undefined method `map'

I usually always used Carrierwave with Rails <=4, but am now working on a Rails 5 project. I can't upload images anymore and I am getting multiple errors (Tried in ActiveAdmin (undefined method map and Seed File). Does anyone know how where the…
zer02
  • 3,963
  • 4
  • 31
  • 66
1
vote
0 answers

Using paperclip gem How to persist image file_path instead of file_name

I am using paperclip gem to upload files to S3, and also want to save the complete s3 filepath in image_file_name column in database.However only filename get stored.My model looks as below class Product < ActiveRecord::Base self.table_name =…
Bibhu Biswal
  • 181
  • 1
  • 1
  • 10
1
vote
1 answer

Execute some code if create/update/destroy action is successful without callbacks

Right now I have a model Trip that when saved, runs some callbacks. I want to isolate this behavior so that it happens only when it runs on the controller (create/update/destroy), so I want to remove the callbacks. Assuming I have a service object…
Francesco Belladonna
  • 11,361
  • 12
  • 77
  • 147
1
vote
2 answers

Rails draw progress bar instead of integer value

I'm now using ActiveAdmin as the admin panel for Rails website. On index page of Teams, it shows team's score as integer. Instead of showing the integer, is there any way to show the static progress bar, scale of 100? Sorry for my poor english.…
Pig and Cat
  • 140
  • 3
  • 17
1
vote
1 answer

Ruby on Rails - Activeadmin - Update model with virtual attribute

I have a activeadmin form to which allows to add a youtube URL. I validate this URL in my video model. It does works well when I want to add a new video but does nothing when I'm editing the video. app/admin/video.rb : ActiveAdmin.register Media,…
KingOfBabu
  • 409
  • 3
  • 21
1
vote
1 answer

Multiple Photos Upload Using ActiveAdmin + CarrierWave

I am trying to upload multiple photos using carrierwave and activeadmin gem. But the problem is Rails says there is Unpermitted parameter: photos, even though I have added photos to permit_params of activeadmin…
rabingaire
  • 179
  • 5
  • 20
1 2 3
99
100