Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Excluding items from the railsadmin list view based on a field value
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Andrew Clarke  
View profile  
 More options Nov 8 2012, 12:32 pm
From: Andrew Clarke <clarkeand...@gmail.com>
Date: Thu, 8 Nov 2012 09:32:09 -0800 (PST)
Local: Thurs, Nov 8 2012 12:32 pm
Subject: Excluding items from the railsadmin list view based on a field value

Hi,

Is there an simple way, i.e. within the rails_admin initializer or
otherwise, to exclude items from the list view for a particular model in
the RailsAdmin ui, based on the value of a particular field.

I want to exclude items with a status field set to say 'deleted' from being
displayed in the RailsAdmin ui. (this allows me to clean up the ui without
actually deleting any data from the db)

thanks for your time,

Andrew


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Benoit Bénézech  
View profile  
 More options Nov 12 2012, 9:01 am
From: Benoit Bénézech <benoit.benez...@gmail.com>
Date: Mon, 12 Nov 2012 06:01:14 -0800 (PST)
Local: Mon, Nov 12 2012 9:01 am
Subject: Re: Excluding items from the railsadmin list view based on a field value

Some managed to do just that by subclassing their model with a
default_scope inside. They did have to hack a thing or two to make it work
with path issues, if I remember well.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Francesco Rigotti  
View profile  
 More options Jan 3, 8:05 am
From: Francesco Rigotti <francesco.rigo...@gmail.com>
Date: Thu, 3 Jan 2013 05:05:02 -0800 (PST)
Local: Thurs, Jan 3 2013 8:05 am
Subject: Re: Excluding items from the railsadmin list view based on a field value

The approach Benoit is referring to is explained step by step in this post<http://www.jamesbadger.ca/2012/06/18/scoped-views-in-rails_admin/>

Cheers


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »