On Monday, September 16, 2013 3:46:14 PM UTC-7, Rodrigo Rosenfeld Rosas
wrote:
>
> Thank you, Jeremy. I could set up a custom template for it (our project
> doesn't use bootstrap) and it's looking good now.
>
> I could use something like this to filter some users that won't be managed
> by the admin ui:
>
> def self.scaffold_session_conditions(session)
> "not (#{scaffold_table_name}.username like '%@integration_imported%')"
> end
>
> Now, something that would be helpful is the ability of showing the roles
> in the list action. The model has something like this:
>
> many_to_many :roles, join_table: :user_roles
>
> I can edit the associations, and that works fine. But it would be
> extremely useful if I could list them in the index page as well as being
> able to filter by role in the Search tab.
>
> I'm a bit lost on how to allow that. Could you please help me?
>
I don't think the search feature supports something like that. It only
searches the current table, and the roles would be stored in a separate
table. I don't think that would be easily doable with scaffolding
extensions architecture.
I'm not sure what you mean by listing them on the index page, but I have a
feeling it wouldn't work there easily either.
Sorry,
Jeremy
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" 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 http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/groups/opt_out.