Modern CSS with Tailwind: can’t setup the Rails source code

I can’t setup the Rails source code. This happens in a working directory containing multiple (postgres) Rails apps.

With:
ruby-3.0.0
sqlite3 3.24.0

bin/setup
[...]
== Preparing database ==
rails aborted!
NoMethodError: undefined method `enums' for #<ActiveRecord::ConnectionAdapters::SQLite3Adapter:0x00007fcb7049a1e0

rails s starts up, but i get:

ActionView::SyntaxErrorInTemplate in HomeController#intro

Encountered a syntax error while rendering template: check <%# Version 1 %>

I’ve just started on the book. I am going to try to skip the bin/setup step completely.

First thing I plan to do is comment out any gems in the Gemfile which I do not already have installed. For the Gems I do already have installed I plan to set the specific gem version in the Gemfile. Then I’ll run bundle install. Of course, I’ve already created a Git repo! After all that I’ll try running rails server and see where that gets me. I just have to do it the hard way.

I suspect there are gems in the Gemfile which are not needed at all.

I was able to reproduce your error. There are a number of lines in app/views/home/intro.html.erb which begin with <% followed by nothing but whitespace. I simply deleted all those lines.

I was able to fix this by changing the name of the dependency in the Gemfile.
on line 6 if you change gem “activerecord-postgres_enum” to “activerecord-pg_enum” the DB setup worked for me.