I want to access the file /public/images/dog.jpg in a Rails project. Is there some kind of url that would access it?
/public/images/dog.jpg
I tried public/images/dog.jpg and images/dog.jpg , but that didn't work.
public/images/dog.jpg
images/dog.jpg
images/dog.jpg correct.
However, I would use the image_path URL image_path , for example. image_path('dog.jpg') .
image_path
image_path('dog.jpg')
See http://guides.rubyonrails.org/asset_pipeline.html#coding-links-to-assets
Source: https://habr.com/ru/post/1439056/More articles:For bitwise operations in Java, do I need to take care that most of the numeric types in Java are signed? - javaJava: Android dev: "The getHolder () method is undefined for the GameView type" - javaUnderstanding WPF Management Styles and Templates - c #Specify UTF-8 encoding for Hadoop jobs - javaTwitter bootstrap - adding an animation / transition effect to the navigation tab - jqueryAndroid: recovering a fragment after changing the screen orientation - androidHow do you write a vertex shader that does nothing? - xnaApplication.Run does not work after Application.Exit in the same topic - c #VB.NET: SQLite for SQL Server - sql-serverincorrect string replacement - stringAll Articles