When you have a controller named image, Rails automatically defines helper methods such as image_path.
The behavior results in hiding Rails builtin-method ActionView::Helpers::AssetTagHelper::image_path. This means that you won’t be able to call those helpers when you have such controllers.
Any solution for this?
Yes, there is a solution for this. You can use
path_to_imagehelper as it’s an alias toimage_path.