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 On Aug 11, 1:37 am, Rajendra Bayana <[email protected]> wrote: > 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 > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---

