fix content type

I added content type creation similar to ActionMailer.