David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
David Kimura PRO said about 9 years ago on Routing Partials :

The code will start to get messy. You wouldn't be able to simply extract out the routes into another file. You would have to still use the Rails.application.routes.draw, but then would also need to figure out how to not overwrite what you've already required. The method that I've demonstrated in this episode was fairly unobtrusive.


You could however, do something like this

config.paths["config/routes"] += Dir[Rails.root.join('config/routes/*.rb’)]

And it would probably have a similar effect, however, I don't think that it is as 'clean'.


David Kimura PRO said about 9 years ago on Bootstrap Framework and Ruby on Rails :

I've been thinking about making a helper gem for bootstrap. Waiting for the official release of v4 or at least a beta ( and time to actually do it ).


David Kimura PRO said about 9 years ago on Bootstrap Framework and Ruby on Rails :

I saw that during my research. However, it didn't seem to support Bootstrap 4 yet. For < 4, it would definitely be a great option!


David Kimura PRO said about 9 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 about 9 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.