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
If I have a virtual property of User that is calculated based on other tables, such as points for the user, how would you represent that in the index and show pages?
register_resource MyRewards.User do
filter except: [:encrypted_password]
index do
selectable_column()
column :id
column :first_name
column :last_name
column :mobile
column :email
column :card
column :points
column :status, toggle: true
actions() # display the default actions column
end
Should it be a modifier on the column :points area or is there something similar to create_changeset :changeset_create that is called during the index and show that can be overridden to perform a query that brings the user with the calculated field?
The text was updated successfully, but these errors were encountered:
If I have a virtual property of
User
that is calculated based on other tables, such aspoints
for theuser
, how would you represent that in the index and show pages?Should it be a modifier on the
column :points
area or is there something similar tocreate_changeset :changeset_create
that is called during theindex
andshow
that can be overridden to perform a query that brings the user with the calculated field?The text was updated successfully, but these errors were encountered: