Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

instead of showing author name in dimensions it is showing #<Author,0x000564563447a0> #36

Open
rahulpattanshetty opened this issue Apr 9, 2018 · 0 comments

Comments

@rahulpattanshetty
Copy link

$cat app/views/posts/index.html.erb
<%= render_report 'custom_filters'%>

$ cat config/reports_kit/reports/custom_filters.yml

measure:
  key: post
  name: Published Posts
filters:
- key: is_published
criteria:
  value: true
dimensions:
- author

In dimensions author name is not displayed in the graph. I need to display the author name in x-axis it is showing some reference number of the object i think.

screenshot

reportskit

@Natejd04
Copy link

Might be a little late to respond to this, but are you looking to have the Authors Name display instead of the object?
In your Author model, add:

def to_s
  #for author.name
  name
end

That should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants