it seems you're trying to write @data into that file. you didn't initialize that variable in your controller. the only occurrence is inside your model. but model and controller don't share variables (even if they have a similar name).
in such a case it is always helpful to debug your code. set a debugger and see which variables contain which values. also: don't try to call methods (in your model) from your view. in general i'd advice to stick to MVC-pattern. you could put that uploaded_picture-code into your helper or just recode it. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

