I am facing problem trying to register pdf Mime type. I am doing this in environment.rb:
RAILS_GEM_VERSION = '2.1.0' unless defined? RAILS_GEM_VERSION require File.join(File.dirname(__FILE__), 'boot') #Pagination require 'rubygems' require 'prawn' Mime::Type.register "application/pdf", :pdf STORE_LOCATION_METHOD = :store_location Rails::Initializer.run do |config| end require 'will_paginate' #Dealing with numbers require 'bigdecimal' require 'bigdecimal/math' While doing so, I tried restarting Mongrel. But, the server is failing to start and throwing the following error: /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:278:in `load_missing_constant': uninitialized constant Mime (NameError) Please do help! -- 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 rubyonrails-talk@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 -~----------~----~----~----~------~----~------~--~---