On Aug 14, 2:39 pm, Tsuyoshi Takahashi <li...@ruby-forum.com> wrote: > Frederick Cheung wrote: > > On Aug 14, 5:37 am, Tsuyoshi Takahashi <li...@ruby-forum.com> wrote: > >> indicated then the problem was solved. > > >> Then next same error as below arose evenif I placed "config.gem > >> 'actionpack'" same as the upper statement. > > > Don't do that - actionpack is part of rails and so is loaded anyway. > > Where does UploadedFile come from? > > > Fred > > Thank you for the comment. > > 'rake gems' tell me that 'actionpack' framework. > > Module UploadedFile resides under > actionpack-2.3.8/lib/action_controller/uploaded_file.rb. And > original_filename method which I use is defined in UploadedFile module. >
It will be ActionController::UploadedFile then. I'm not sure what you're trying to do my mixing that into one of your view helpers - that module is intended to be mixed into the objects representing file uploads - mixing it into your view helper module won't gain you a working original_filename method. Fred > Tsuyoshi > -- > Posted viahttp://www.ruby-forum.com/. -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.