Re: problem in file uploading

rinda
2007-11-14T09:27:33Z

On Nov 14, 2:45 pm, Nadeesha Meththananda <rails-mailing-l...@andreas-
s.net> wrote:
> i wote a code to do file uploading with the hep given in documents in
> the net.
> but i came across some problems.
>
> in the View section the form that was wrote in th normal HTML was
> working 100% perfect and it uplodes the files also.
>
> but when i edited that in the rails way (u can see the coding in the
> second form tag), when i goes to upload the file it give a error as this
>
> " You have a nil object when you didn''t expect it!
> The error occurred while evaluating nil.read"
>
> so if any body know where i have gone wrong ?????????
>

Form_for is for object (when you pass activerecord object to view).
Use form_tag instead.