Problem with full_original_filename.

I am upgrading from rails 1.1.6 to 2.3.2.

View has:
<%= file_column_field 'gallery', 'filename', :size => 100 %>

Controller has:
upload_dir = params[:gallery][:filename].full_original_filename

Works fine in production which is rails 1.1.6.

In development (rails 2.3.2)  I get:
NoMethodError (undefined method `full_original_filename' for #<File:/
tmp/RackMultipart.18693.2>):
  /usr/local/lib/ruby/1.8/delegate.rb:268:in `method_missing'
  app/controllers/galleries_controller.rb:238:in `upload_dir_name'
  app/controllers/galleries_controller.rb:31:in `create'


Any help would be appreciated. This is the last problem I am having
with the upgrade.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to