flowbite
flowbite copied to clipboard
Ruby on Rails installation instructions might be incorrect
Describe the bug
I'm following installation instructions with a brand new Ruby on Rails 8.0.1 project as it's described here https://flowbite.com/docs/getting-started/rails/#install-flowbite and the tailwind.config.js is not generated.
To Reproduce
Generate rails app:
rails new app-name
cd app-name
Install the official tailwindcss-rails gem:
bundle add tailwindcss-rails
Run the install command to generate a tailwind.config.js file inside the ./config directory:
rails tailwindcss:install
The command outputs:
$ rails tailwindcss:install
apply /Users/bolshakov/.asdf/installs/ruby/3.3.4/lib/ruby/gems/3.3.0/gems/tailwindcss-rails-4.0.0/lib/install/install_tailwindcss.rb
Add Tailwindcss container element in application layout
insert app/views/layouts/application.html.erb
insert app/views/layouts/application.html.erb
Build into app/assets/builds
create app/assets/builds
create app/assets/builds/.keep
append .gitignore
Add default /Users/bolshakov/Projects/personal/testopp/app/assets/tailwind/application.css
create app/assets/tailwind/application.css
Add default Procfile.dev
create Procfile.dev
Ensure foreman is installed
run gem install foreman from "."
Successfully installed foreman-0.88.1
Parsing documentation for foreman-0.88.1
Done installing documentation for foreman after 0 seconds
Parsing documentation for foreman-0.88.1
Done installing documentation for foreman after 0 seconds
1 gem installed
Add bin/dev to start foreman
force bin/dev
Compile initial Tailwind build
run rails tailwindcss:build from "."
≈ tailwindcss v4.0.3
Done in 47ms
run bundle install --quiet
Expected behavior
Generates tailwind.config.js inside the ./config directory.
Actual behavior
The config file was not generated. It's impossible to follow the later instructions in the Guide since they rely on the configuration file which is missing.