I got this error when creating data bases with rake command

hi i got this error when i tries to run rake db:create:all command,

G:\my\frogtest>rake db:create:all
(in G:/my/frogtest)
rake aborted!
undefined method `last’ for
{“action_mailer_optional_tls”=>:environment}:Hash
G:/my/frogtest/rakefile:10
(See full trace by running task with --trace)

my rake file is like this

Add your own tasks in files placed in lib/tasks ending in .rake,

for example lib/tasks/capistrano.rake, and they will automatically be

available to Rake.

require(File.join(File.dirname(FILE), ‘config’, ‘boot’))

require ‘rake’
require ‘rake/testtask’
require ‘rake/rdoctask’

require ‘tasks/rails’

can anyone tell why this it’s happening

i am using rake 0.8.7.

regards,
rajendra

rajendra

try to use => rake db:migrate

Wap A. wrote:

rajendra

try to use => rake db:migrate

that is also not working,

it gives like this

G:\my\frogtest>rake db:migrate
(in G:/my/frogtest)
rake aborted!
undefined method `last’ for
{“action_mailer_optional_tls”=>:environment}:Hash
G:/my/frogtest/rakefile:10
(See full trace by running task with --trace)

Can you post the full trac of the rake task?

On Aug 11, 10:48 am, Rajendra B. <rails-mailing-l…@andreas-

Can you post the full trace of the rake task?

On Aug 11, 10:48 am, Rajendra B. <rails-mailing-l…@andreas-

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 J.

On Aug 11, 1:37 am, Rajendra B. [email protected]