I can’t get the routing for the assets right.
When I open localhost:3000/users/1 I have an
<img src="assets/image.png"/>
but I get an “no route matches” because it’s looking for users/assets.
ActionController::RoutingError (No route matches [GET] "/users/assets/image.png"):
How can I fix this?
Instead of using an
imgtag directly you have to use theimage_taghelper in your view: