Build a Blog with Rails Part 11: Adding TailwindCSS to Rails

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

after hours of search finally found your video which told me about the bin/dev watcher, thank you! That solved my problem! 👍

BenjaminMahmood
Автор

You sir are a legend. Thank you. The only resource that explained how TailWind works thank after 3/4 days you got it nailed/

PNUKcom
Автор

if anyone facing an issue with tailwindcss:watch, you need to add "config.assets.debug = true" into the development.rb file.

oxhackdev
Автор

One thing that I noticed - I was not able to apply tailwind styles to a <select> element that was generated via form.select. I was able to apply it to other elements such as form.text_field however. The only way to apply my custom styles to the select element (e.g. border-radius: 5px) was to do it in the application.css file by using the general select selector. Couldn't even do it with a .custom-selector and using that class. Weird stuff.

keepfeatherinitbrothaaaa
Автор

If you’re following along & got the error:
bin/dev: 8: exec: foreman: not found
try running:
asdf reshim

accountproton
Автор

Im having the issue where I have added tailwindcss, its made my fonts all go default (i.e 3:37), adding the body class prose tag doesn't seem to change anything for me.

ckrnjgk
Автор

mx-auto doesnt center anything ? any idea why

moppnitz
Автор

My ruby verseion is 3.1.2 and rails verseion is 7.0.6 .When I successfully executed “bundle add tailwindcss rails”。The installed version is tailwindcss rails 2.0.30 (x86_64 Linux)。
When I failed to execute “rails tailwindcss: install” and generated garbled files。
I have tried Google related issues but have not been resolved. I hope to receive help。

guilin-cvzq
Автор

Anyone knows how to solve this problem "Unrecognized command "tailwindcss:install"

PrajwalGautam-omsg
Автор

i tried to run the bin/dev and got this error, anyone knows how to solve?
SIGUSR2 not implemented, signal based restart unavailable!
*** SIGUSR1 not implemented, signal based restart unavailable!
*** SIGHUP not implemented, signal based logs reopening unavailable!d

joaogebara