rails-admin Questions

2

I've been reading the rails_admin wiki section about customizing actions but I am totally new to rails_admin and this documentation is a bit confusing for me. What I need to achieve is that, when ...
Imprinting asked 17/7, 2012 at 15:7

2

I have a self-associating model which allows the user to define a "parent photo", in order to group them together. My model: class Photo < ActiveRecord::Base attr_accessible :image, :parent_...
Merrick asked 18/7, 2012 at 22:18

2

Using rails_admin 0.6.2, I've added a custom field for a count of associated objects. For example, in a list of blog posts, show how many comments each has. config.model Post do list do field :i...
Rita asked 3/10, 2014 at 14:32

1

Solved

I used rails-admin. I am getting name "myappname admin" in navbar-header bar. I want to change it with "myapp" name.I tried to change it with customize view file navigation.html.haml .container...
Machicolation asked 18/1, 2016 at 10:41

3

Hi I'm using Rails Admin and I need to open arbitrary modal forms on certain models. To make it simple I would like to have a link which once clicked opens a modal form. I though it was just a matt...
Hollis asked 4/3, 2013 at 22:47

0

Does anyone know of a way to configure that? Or another DB query optimization technique? I am using Rails 4.1.8 with RailsAdmin 0.6.8 and Mongoid 4.0.2
Predicament asked 8/10, 2015 at 18:23

3

Solved

I am using rails_admin and paperclip but installing rails_admin with a model having paperclip attributes has_attached_file throws an error undefined method `attachment_definitions' I am using Ra...
Expiate asked 8/7, 2013 at 9:59

1

I just updated to Rails 4 and rails_admin is now giving me this when I try to edit anything and then hit save: Can't mass-assign protected attributes for Opportunity: created_by_id, contact_infor...

2

I am making my own custom view that I need to make the process of creating associated models less painful for my users. I want to display all of the models associated pieces in-line, with controls ...
Untitled asked 3/9, 2012 at 22:0

2

In my rails application website visitors can sign up and create content. It uses devise with user model and everything works well. Now I want to use rails_admin for managing website resources and ...
Parenthood asked 24/11, 2014 at 10:34

1

Is seem there is really poor documentation of Rails admin All I can find is this link https://github.com/sferik/rails_admin/wiki/Custom-action But No where ever mention in this link how to go abou...
Rudolfrudolfo asked 23/7, 2012 at 5:51

1

Solved

I'm setting up a rails application with rails_admin and acts_as_taggable_on gems. Earlier in the project when attempting to make sure that this could be done I found this issue on the rails_admin...
Feud asked 19/3, 2015 at 2:4

4

i am using rails_admin. when i go to certain resource. by typin url localhost:3000/admin/rule than it give me this error. code is: scope = Rule.all scope.page(1).per(2) . above code is writ...

2

Solved

I have Rails_admin installed with devise and I want to restrict the /admin dashboard to only admins. For the moment my code looks like : config.authenticate_with do warden.authenticate! scope: :u...
Lapwing asked 10/1, 2015 at 16:18

1

Solved

In my rails project I have three models: class Recipe < ActiveRecord::Base has_many :recipe_categorizations has_many :category, :through => :recipe_categorizations accepts_nested_attribut...
Anaximander asked 31/10, 2014 at 0:3

3

Solved

I have a problem. In my app I am using rails_admin gem. Everything is good except one thing. For some models I want to make possible only to delete them. Is there an easy way to do this?
Mabe asked 11/7, 2012 at 12:20

1

I'm building a custom action for rails admin that includes a custom view. I want to include a local copy of sparkline.js but I can't figure out a way to do this. I tried to add the sparkline.js t...
Arnuad asked 27/6, 2013 at 17:20

2

Solved

I want to add the JS from Google Analytics embed API into my rails application and only for Rails Admin (not needed anywhere else). We have overwritten the Rails Admin Dashboard and now we are str...
Raeannraeburn asked 21/8, 2014 at 8:59

2

I just upgraded to Rails 3.2.10 and am getting an error message that I never used to get when updating a record via RailsAdmin. ActiveRecord::HasManyThroughNestedAssociationsAreReadonly at /admin/...
Cubbyhole asked 6/1, 2013 at 22:0

2

Solved

I don't understand very good yet how it works rails_admin gem for create a new action. I want create a action with name balance in rails_admin root. I have created a file with name rails_admin_ba...
Thomasthomasa asked 23/10, 2012 at 13:40

1

We have a list view for a model Ticket in rails admin that loads very slowly. class Ticket < ActiveRecord::Base belongs_to :crew end The reason it is slow is that we display the ticket's cre...
Rida asked 11/3, 2014 at 17:59

4

Solved

I have setup the rails_admin for the admin interface of my site. For one of the Model, I want to display an additional column. say i have name , phone , email, image url, rank etc attributes in m...
Fredette asked 5/4, 2012 at 11:18

2

Solved

The Rails_Admin wiki explains how to integrate with bootstrap-wysihtml5 which is incredibly easy. However, I'd like the wysihtml5 widget to have the "edit as html" button. Is this possible?
Shockley asked 29/4, 2013 at 5:2

1

I'm using https://github.com/sferik/rails_admin to handle my admin interface. It's possible to filter your model based on the current columns that exists in this model (id, created_at etc.) I wan...
Attune asked 8/12, 2011 at 14:37

2

Solved

I have two Models class Entity < ActiveRecord::Base # Associations has_many :contacts accepts_nested_attributes_for :contacts, :allow_destroy => true end class Contact < ActiveRecord:...

© 2022 - 2024 — McMap. All rights reserved.