Ruby SyntaxError on stylesheet_link_tag

76 Views Asked by At

I got Ruby project, and I want to put it in docker. Unfortunately, I have an issue that I cannot solve. Maybe one of you has an idea how to fix or check what is the problem.

I create a docker image based on ruby:2.7.5. It install all packages and runs. When I try to open home page, I got the below console error:

Completed 500 Internal Server Error (...) ActionView::Template::Error (SyntaxtError: Invalid or unexpected token):

It does not display any more detailed info, but I narrow down the problem to the line = stylesheet_link_tag 'application', media => 'all' When I remove that line, the home page loads correctly. I tried to edit the application.css file but no luck. Empty file, file with single css rule, nothing changes the error.

Ruby version 2.7.5 Rails: 5.2.6

0

There are 0 best solutions below