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

TypeError (can't convert nil into Integer): #34

Open
ilankasan opened this issue Mar 17, 2011 · 1 comment
Open

TypeError (can't convert nil into Integer): #34

ilankasan opened this issue Mar 17, 2011 · 1 comment

Comments

@ilankasan
Copy link

I followed a simple example to upload a file. When i add to the upload form the field <%= f.file_field :uploaded_data %>, and submit the form (with or without an image), i get an error message in the web page:
500 Internal Server Error

On the server log i get an error message:TypeError (can't convert nil into Integer):

I am on rails 3.0.5 and Ruby 1.9.2 on Windows 7

I used the sample code at:http://clarkware.com/blog/2007/02/24/file-upload-fu

@bjorntrondsen
Copy link

I had the same issue on Linux, however only when using Phusion Passenger, not Thin or Webrick.
Jmoses seems to have a fix for this on his branch:

gem "attachment_fu", :git => "https://github.com/jmoses/attachment_fu.git", :branch => 'rails3'

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

2 participants