rails-admin Questions

5

Solved

I have a field for which rails_admin generates a textfield, but I'd like it to use a <select> tag instead. I customized the field like this, in my initializer: RailsAdmin.config do |config| ...
Hippie asked 2/4, 2011 at 16:35

2

Solved

I am using rails_admin for admin panel. Just change association in Image model From this class Image < ApplicationRecord belongs_to :user belongs_to :product end to this class Image &lt...
Intoxicant asked 1/2, 2017 at 12:50

5

I have one model that I want to hide from Navigation on the left of rails_admin but it does not work. (I still want to access it, just want to hide it from the panel, so exclude does not count) I ...
Wilda asked 3/6, 2013 at 6:16

3

Solved

In rails_admin list shows all available columns of model according to how columns are ordered in database: However, I want different order in list page. I want first name and then other fields i...
Blumenfeld asked 24/11, 2015 at 8:29

2

I have a Rails4 application that uses rails_admin gem and MySql database. I have a User model which has_many Jobs . Now, in rails_admin dashboard, User can be deleted normally, unless it has some ...
Pained asked 26/2, 2015 at 20:15

2

Solved

I am using rails 5, rails_admin, devise and cancancan. Everything works correctly, but when there is access denied, it shows a 'You are not authorized to access this page' error screen. I want to...
Claudiaclaudian asked 2/11, 2016 at 18:52

1

Solved

The base question of "how to create a custom bulk action in Rails Admin" has been asked multiple times in the project, and even referred here to be asked, but has never been done here: "Looking...
Mer asked 8/9, 2019 at 0:45

1

Solved

I've setup Rails API only project with Postgreqsl database. Rails Version: 6.0.0.rc1 Rails_Admin Version: 2.0.0.beta I am getting following error ActiveRecord::StatementInvalid in RailsAdmin:...
Haemostasis asked 21/6, 2019 at 17:56

2

Solved

Currently, I'm working on a project using rails_admin gem for admin dashboard displaying. But view is auto generate according to Model field. I want to display my on view in admin dashboard. What...
Smuts asked 6/9, 2016 at 6:33

2

Solved

I am using rails_admin in my app. I have some scopes on my models, following is an example: class User < ActiveRecord::Base scope :unconfirmed, where('confirmed_at IS NULL') end Is it poss...
Ambrosane asked 23/10, 2013 at 14:22

4

I am customizing Rails Admin : https://github.com/sferik/rails_admin , i need to disable/hide "Add new" option for some model. Any help will save lot time for me. Thanks in advance
Basal asked 12/8, 2013 at 15:45

3

I'm using rails_admin and I think it's great. Unfortunately I can't get to override a specific action on a specific model. I just need to override edit and update behavior on one model. Any idea? ...

1

Solved

I just created a simple application for products and shopping cart with names, price and attachments. It's working fine without any issues. I decided to create admin and authentication using rails-...
Leucite asked 11/6, 2018 at 19:51

4

Solved

I've followed this: https://github.com/sferik/rails_admin And I think I've done everything needed, bundle install, rake db:migrate etc but I can't get rid of: undefined local variable or method ...
Eschatology asked 23/4, 2018 at 18:34

4

The default height for the input area on the "body" of a Post in Rails Admin is pretty small. I'm trying to figure out how to increase the height. Any suggestions? config.model Post do label 'Bl...
Immigrate asked 18/9, 2012 at 18:45

4

Solved

I needed this myself, so here it is QA-style: By default, Rails Admin shows a model's default_scope. How do I get it to show every model completely unscoped?
Summerly asked 19/11, 2013 at 10:48

6

I've installed rails_admin into my app and I want to do something pretty basic...I have two models and their association comes up as expected...I have a seminar registration model that belongs_to :...
Richardricharda asked 25/7, 2012 at 20:42

2

I am using rails_admin together with globalize3 and cannot get searchable associations to work. Here are the models (Person has_one/belongs_to Name has_many/belongs_to NameTranslation): class Pers...
Degrease asked 23/11, 2012 at 12:56

2

I am using Rails 3.2.x and also using RailsAdmin. I have run many migrations and changed my DB structure many times. As a result of that, I am getting a PG:Error saying that a relation doesn't exi...
Apprehensive asked 4/7, 2013 at 7:41

3

Solved

I originally posted this as an issue on rails_api GitHub, but am now posting it here due to inactivity. I'm trying to use rails_admin with a Rails 5 API application. I included extra ActionControl...

1

Solved

I'm on rails 5 and I'm trying to implement authorizations with pundit for my rails_admin panel. So I included pundit in my application controller and installed the rails_admin_pundit gem as you ca...
Woolfell asked 2/11, 2016 at 10:14

1

Solved

I've been using rails_admin v0.7.0 with the clearance gem successfully up this point. I tried to update rails_admin to v1.0 today, but am getting an undefined variable or method error for current_u...
Cycloparaffin asked 11/10, 2016 at 6:0

4

I really like rails_admin, but my clients don't like CKEditor. Is this really the only option for WYSIWYG on this gem? Is there any way to use tinyMCE with rails_admin?
Monovalent asked 19/7, 2011 at 19:13

1

When trying to create a new record with a has_one relationship (and all the inverse_of correctly specified), the form is disabled: The code for this association is as follow: class Visit < A...
Mahler asked 29/4, 2016 at 3:21

1

Solved

Using Rails Admin with Dragonfly. However when I have created a new post with an attachment connected :ob to dragonfly and wants to edit it. It sais "No file chosen". As it doesn't pick up that the...
Confessedly asked 7/3, 2016 at 14:25

© 2022 - 2024 — McMap. All rights reserved.