i got this error when creating data bases with rake command

The most important option for debugging this kind of thing is the --
trace option. You'll get a lot more help if you post the complete
output of:

rake db:create:all --trace

However, I'd also recommend that you look for the string
'action_mailer_optional_tls' in your source files - that's most likely
the source of the error.

--Matt Jones