lib/document.rb
# Returns the URL query path for the given file. This can be used to construct a
# full URL to the file, for example:
#
#   f = "http://colore:1234/#{doc.file_path 'v001', 'fred.docx'}"
#
Returns the URL query path for the given file. This can be used to construct a
full URL to the file, for example.


Returns the URL query path for the given file . This can be used to construct a full URL to the file for example .
def file_path version, filename
      "/document/#{@doc_key.app}/#{@doc_key.doc_id}/#{version}/#{filename}"
    end
def file_path version , filename "/document/#{@doc_key.app}/#{@doc_key.doc_id}/#{version}/#{filename}" end
Returns the URL query path for the given file.
Returns the URL query path for the given file .
# TODO: don't like this hard-code # it should really be in the app, but the hash is generated here
version
<not_specific>
filename
<not_specific>