Created
May 22, 2012 18:39
-
-
Save Hakon/2770840 to your computer and use it in GitHub Desktop.
Jruby-rack with rails send_file bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%w(action_controller/railtie).map &method(:require) | |
run JrubyRackTest ||= Class.new(Rails::Application) { | |
config.secret_token = routes.append { root to: 'send_file#deliver' }.inspect | |
initialize! | |
} | |
class SendFileController < ActionController::Base | |
def deliver | |
send_file Rails.root.join("testdata.jpeg") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment