Closed tonymarschall closed 12 years ago
I found https://github.com/berk/will_filter/blob/master/app/models/will_filter/filter.rb
Its possible to set the table name via condition_title_for method
class TimeentryFilter < WillFilter::Filter
def condition_title_for(title_key)
if title_key == :"user_id"
return :"User"
end
return title_key
end
...
How can i reference user_id:1 to user.name in the resultset?
Found a example on howto customize the table output:
https://github.com/berk/tr8n/blob/master/app/views/tr8n/admin/language/index.html.erb
I want to customize the result and display user.name instead of task.user_id. Is this possible?