David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
Ruby Rogues Panelist
David Kimura PRO said over 7 years ago on DataTables :

You should be able to simply add a class attribute to the link_to methods as you normally would to get the styling.


David Kimura PRO said over 7 years ago on DataTables :

I see, keep in mind that the UsersDatatable is its own class and nor really part of the model or controller.

You could extract out the contents of the data method into its own class which I would probably do for larger tables.

As far as the classes on the td tags, that should be possible to do with their API. I'll look into it.


David Kimura PRO said over 7 years ago on DataTables :

Thanks for the heads up. It wouldn't work since I'm doing server side authorization, but definitely shouldn't display.


David Kimura PRO said over 7 years ago on GeoCoding and Maps :

Love it! I actually just completed this functionality on a v2 of my personal finance application.


David Kimura PRO said over 7 years ago on DataTables :

Not really since it isn't being used elsewhere in the class. Keep in mind that the memorization is only valid for the lifecycle of the request and any further requests would no longer have the calculations stored.