Displaying 2 results from an estimated 2 matches for "download_url".
Did you mean:
_download_url
2005 Mar 06
1
Force a file download AND render a page
...wnload will begin
shortly, if not click _here_"
Relevant controller code:
(this is solely for testing purposes, i will sanitize the path and such
later)
def test_render_first(path)
# send a url to the browser so I can give the user a link in case the
# download doesn''t happen
@download_url = "http://#{@request.env[''SERVER_NAME'']}/#{path}"
render "file/download"
send_file(#{@request.env[''DOCUMENT_ROOT]''/#{path}",
:type => "application/pdf")
end
def test_send_first(path)
@download_url = "http://...
2010 Jan 28
2
Is anyone managing Glassfish configuration with puppet?
Has anyone found a clean way to manage Glassfish configuration with puppet?
Glassfish was designed to be managed through a WebUI or a CLI tool known as
asadmin. Making changes using these tools modifies a domain.xml file.
Glassfish reads and writes this file every time it restarts, even if the
contents are the same, which changes the timestamp. I believe this can be
addressed by setting puppet