I've looked around for a couple days now for a way to implement js.erb files into my Ruby On Rails 7 application and could not find any resources on this topic. Are js.erb files completely depreciated in Rails 7? If so, is there any way to call in partials in the javascript files of import map?
I'm trying to implement a javascript function that re renders and updates the "like" count on a post. My approach requires me to pull the count data from a table and change the element's text with that ruby partial.
Any resources or a point in the right direction would be greatly appreciated!