Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting a Runtime Error Rails 3.2.3 #4

Open
davydotcom opened this issue Apr 15, 2012 · 5 comments
Open

Getting a Runtime Error Rails 3.2.3 #4

davydotcom opened this issue Apr 15, 2012 · 5 comments

Comments

@davydotcom
Copy link

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

@sobrinho
Copy link
Collaborator

@davydotcom could you paste the entire backtrace?

I don't see the problem.

@davydotcom
Copy link
Author

Unforunately its larger than the 500kb limit of pastebin

@davydotcom
Copy link
Author

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.

@gnepud
Copy link

gnepud commented Sep 18, 2012

i have same error in rails 3.1.8 and ruby1.9.3

@shairontoledo
Copy link
Owner

Can you send me some code to reproduce that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants