samedi 26 août 2023

ActionView::Template::Error (wrong number of arguments (given 2, expected 1))

I am upgrading from Rails 5.2 to Rails 7. After running the server with rails s when I go to any routes, it gives me Completed 500 Internal Server Error

ActionView::Template::Error (wrong number of arguments (given 2, expected 1)):

<%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>

<%= stylesheet_link_tag    'eye-candy', media: 'all', 'data-turbolinks-track' => true %>

<%= stylesheet_link_tag    'charts', media: 'all', 'data-turbolinks-track' => true %>

app/views/layouts/application.html.erb:19 app/controllers/application_controller.rb:93:in `track'

I tried removing arguments but stylesheet_link_tag is not even taking a single argument.

Aucun commentaire:

Enregistrer un commentaire