You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation specifies that we can conditionally display columns like so:
column :email, if: :admin?
Where "admin?" is defined in the report class.
What I'd like to do is pass some report options through this line:
<%= simple_table_for @users, with: UserTable %>
, those options being visible by the report class's methods.
My application has a few different ways of listing the same data, so it makes sense that I should have a single table definition and then just conditionally display the appropriate columns.
The text was updated successfully, but these errors were encountered:
The documentation specifies that we can conditionally display columns like so:
column :email, if: :admin?
Where "admin?" is defined in the report class.
What I'd like to do is pass some report options through this line:
<%= simple_table_for @users, with: UserTable %>
, those options being visible by the report class's methods.
My application has a few different ways of listing the same data, so it makes sense that I should have a single table definition and then just conditionally display the appropriate columns.
The text was updated successfully, but these errors were encountered: