-
Notifications
You must be signed in to change notification settings - Fork 26
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
Format of source_data #7
Comments
Actually, this may be better:
I'm not sure how to slim this down, i.e. currently the row/column headers are using the entire user / leave_type objects rather than a simple value, can I set column_name to user.name or similar? |
Hi Instead of running a raw sql query, I recommend you try using the ActiveRecord query interface and you will get some success. So this won't work...
...while this will work...
Hope that helps. |
I'm using the following to construct
This gives me a result like:
Which fails when I build the grid with errors like:
undefined method `user_name' for #Hash:0x00000103ad0b98
it looks like this should work with an array of hashes, do I need to reformat or select differently somehow?
The text was updated successfully, but these errors were encountered: