Flowdock
method

font_path

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ActionView::Helpers::AssetTagHelper

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

These similar methods exist in v6.1.7.7:

font_path(source) public

Computes the path to a font asset in the public fonts directory. Full paths from the document root will be passed through.

Examples

font_path("font")                                           # => /fonts/font
font_path("font.ttf")                                       # => /fonts/font.ttf
font_path("dir/font.ttf")                                   # => /fonts/dir/font.ttf
font_path("/dir/font.ttf")                                  # => /dir/font.ttf
font_path("http://www.example.com/dir/font.ttf")            # => http://www.example.com/dir/font.ttf
Show source
Register or log in to add new notes.