Flowdock
method

audio_path

Importance_2
v3.0.9 - Show latest stable - 0 notes - Class: ActionView::Helpers::AssetTagHelper
audio_path(source) public

Computes the path to an audio asset in the public audios directory. Full paths from the document root will be passed through. Used internally by audio_tag to build the audio path.

Examples

audio_path("horse")                                            # => /audios/horse
audio_path("horse.wav")                                        # => /audios/horse.avi
audio_path("sounds/horse.wav")                                 # => /audios/sounds/horse.avi
audio_path("/sounds/horse.wav")                                # => /sounds/horse.avi
audio_path("http://www.railsapplication.com/sounds/horse.wav") # => http://www.railsapplication.com/sounds/horse.wav
Show source
Register or log in to add new notes.