Hi Sergio
Using conditions_for_collection will give me what I want without SQL
Example
def conditions_for_collection
['user_type IN (?)', ['admin', 'sysop']]end
This question is considered closed :-)
On Saturday, 25 February 2017 19:49:01 UTC+8, Chee Chong Hwa wrote:
>
> Hi Sergio
>
> Where should I put the following code to restrict the display in the
> active_scaffold list
> Client.find_by_sql("SELECT * FROM clients where clients.eno = 'CCH' ")
>
> TIA
>
>
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/activescaffold.
For more options, visit https://groups.google.com/d/optout.