RGhost-Rails
RGhost-Rails copied to clipboard
Getting a Runtime Error Rails 3.2.3
RuntimeError in VendorsController#list
ActionView::Helpers::ControllerHelper#headers delegated to controller.headers, but controller is nil: #<VendorsController:0x007f8945d82040 @_routes=nil, @_action_has_layout=true, @_headers={"Content-Type"=>"text/html"}, @status=200, @request=#<ActionDispatch::Request:0x007f8945d81f28 @env={"GATEWAY_INTERFACE"=>"CGI/1.1", "PATH_INFO"=>"/vendors/list", "QUERY_STRING"=>"", "REMOTE_ADDR"=>"127.0.0.1", "REMOTE_HOST"=>"localhost", "REQUEST_METHOD"=>"GET", "REQUEST_URI"=>"http://localhost:3000/vendors/list", "SCRIPT_NAME"=>"", "SERVER_NAME"=>"localhost", "SERVER_PORT"=>"3000", "SERVER_PROTOCOL"=>"HTTP/1.1", "SERVER_SOFTWARE"=>"WEBrick/1.3.1 (Ruby/1.9.3/2011-10-30)", "HTTP_HOST"=>"localhost:3000", "HTTP_CONNECTION"=>"keep-alive", "HTTP_USER_AGENT"=>"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.162 Safari/535.19", "HTTP_ACCEPT"=>"text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8", "HTTP_ACCEPT_ENCODING"=>"gzip,deflate,sdch", "HTTP_ACCEPT_LANGUAGE"=>"en-US,en;q=0.8", "HTTP_ACCEPT_CHARSET"=>"ISO-8859-1,utf-8;q=0.7,*;q=0.3", "HTTP_COOKIE"=>"sessionid=229317d0df5f8f16d1304cab9487dbba; csrftoken=imoWOkI0gxTlW7Nxecz5t5Ojmhqv9MmS; spud_user_credentials=5be568ad94b279d60b06ab92ad2606d520381d62eff6bac829413ebd959c6b3c46d3f1968904be7c6074b512640058a2f60b714d67f520e119bb91dd8b11f270%3A%3A1;
Error is several pages long
@davydotcom could you paste the entire backtrace?
I don't see the problem.
Unforunately its larger than the 500kb limit of pastebin
More information on bug used (rghost_render :pdf, :report => 'list', :filename => "invoice022009.pdf") Rails 3.2.2 Ruby 1.9.3. I switched to using send_data with plain rghost and all is fine now.
i have same error in rails 3.1.8 and ruby1.9.3
Can you send me some code to reproduce that?