Rajendra Bayana
2009-Aug-11 05:37 UTC
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 -- Posted via http://www.ruby-forum.com/.
Wap Addon
2009-Aug-11 05:44 UTC
Re: i got this error when creating data bases with rake command
rajendra try to use => rake db:migrate -- Posted via http://www.ruby-forum.com/.
Rajendra Bayana
2009-Aug-11 05:48 UTC
Re: i got this error when creating data bases with rake command
Wap Addon wrote:> rajendra > > try to use => rake db:migratethat 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) -- Posted via http://www.ruby-forum.com/.
kilari
2009-Aug-11 08:14 UTC
Re: i got this error when creating data bases with rake command
Can you post the full trac of the rake task? On Aug 11, 10:48 am, Rajendra Bayana <rails-mailing-l...@andreas- s.net> wrote:> Wap Addon 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) > -- > Posted viahttp://www.ruby-forum.com/.
kilari
2009-Aug-11 08:15 UTC
Re: i got this error when creating data bases with rake command
Can you post the full trace of the rake task? On Aug 11, 10:48 am, Rajendra Bayana <rails-mailing-l...@andreas- s.net> wrote:> Wap Addon 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) > -- > Posted viahttp://www.ruby-forum.com/.
Matt Jones
2009-Aug-11 12:51 UTC
Re: 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 On Aug 11, 1:37 am, Rajendra Bayana <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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/.