Hi: I am using Rails 2.3.5 with paperclip, mime-types and uploadify. So far the application is working in development environment. But when I switched to the production environment, it produced the following error.
NoMethodError (private method `chomp' called for nil:NilClass): /usr/lib/ruby/gems/1.8/gems/mime-types-1.16/lib/mime/types.rb:665:in `type_for' /usr/lib/ruby/gems/1.8/gems/mime-types-1.16/lib/mime/types.rb:730:in `type_for' app/controllers/assets_controller.rb:180:in `new_asset_from_params' haml (2.2.22) rails/./lib/sass/plugin/rails.rb:20:in `process' app/middleware/flash_session_cookie_middleware.rb:15:in `call' It seems that the error has something to do with Mime-types. But I could not work it out. Does anyone have the similar issue or possible suggestions? Thanks -- Posted via http://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 [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.

