Eric Chua said 7 months ago on Failover Requests :
Hi David,

For all your tutorials, are there any a starting point codes which I can use to follow along? The current downloadable codes bases are the final ones. Hard to follow along. Any help? Thanks.

David Kimura PRO said 7 months ago on Failover Requests :
  Eric Chua It's a simple template. I try to keep things as untouched as possible when creating an episode. The main differences between a stock Rails app and the templated one that I use is just some styling differences. However, I do provide the source of the application templating that I use at https://github.com/driftingruby/template

Eric Chua said 7 months ago on Failover Requests :
Thanks, will try this out.

Eric Chua said 7 months ago on Failover Requests :
Hi David,

I have tried your template, and not sure why the tailwind didn't rendered properly. I think your template is using tailwind 3 and not the latest tailwind 4, as you are using tailwind.config.js (looks like below).



To fix it, I need to do this
bundle add tailwindcss-rails
./bin/rails tailwindcss:install

Then only it works. So your template needs to do anything extra?

Thanks.

David Kimura PRO said 7 months ago on Failover Requests :
In the README.md of the template, I also share my railsrc dot file which includes

--css tailwind

as one of the flags. I believe this makes the difference between what you're experiencing and what I am doing.

If you were to run

rails new example --css tailwind -m path_to_template/tailwind.rb

then you should get the same results as I do.

Login to Comment