0
我一直在運行rake任務/命令時遇到問題,只要輸入rake db:migrate或rake -T,它會顯示錯誤,說明未定義的方法`end_with?'。對於 「回扣中止!」 字符串(NoMethodError)。採用ruby186,rails238和寶石版本1.3.3未定義的方法`end_with?' for「rake aborted!」:String(NoMethodError)
rake db:migrate
/home/projects/.rvm/gems/[email protected]/gems/rubygems-bundler-1.1.0/lib/rubygems-bundler/regenerate_binstubs_command.rb:48: warning: parenthesize argument(s) for future version
/home/a3logics/.rvm/gems/[email protected]/gems/rake-10.0.3/lib/rake/trace_output.rb:14:in `trace_on': undefined method `end_with?' for "rake aborted!":String (NoMethodError)
from /home/a3logics/.rvm/gems/[email protected]/gems/rake-10.0.3/lib/rake/trace_output.rb:14:in `map'
from /home/a3logics/.rvm/gems/[email protected]/gems/rake-10.0.3/lib/rake/trace_output.rb:14:in `trace_on'
from /home/a3logics/.rvm/gems/[email protected]/gems/rake-10.0.3/lib/rake/application.rb:322:in `trace'
from /home/a3logics/.rvm/gems/[email protected]/gems/rake-10.0.3/lib/rake/application.rb:176:in `display_error_message'
from /home/a3logics/.rvm/gems/[email protected]/gems/rake-10.0.3/lib/rake/application.rb:169:in `standard_exception_handling'
from /home/a3logics/.rvm/gems/[email protected]/gems/rake-10.0.3/lib/rake/application.rb:70:in `run'
from /home/a3logics/.rvm/gems/[email protected]/gems/rake-10.0.3/bin/rake:33
from /home/a3logics/.rvm/gems/[email protected]/bin/rake:19:in `load'
from /home/a3logics/.rvm/gems/[email protected]/bin/rake:19
from /home/a3logics/.rvm/gems/ruby-1.8.6-p420/bin/ruby_noexec_wrapper:14
任何幫助,我被困在這裏。
你可以卸載rubygems-bundler並查看錯誤是否仍然存在? – 2013-04-09 07:43:12
難道你的一個rake任務中有'end_with?'嗎?該方法是'ends_with?' – 2013-04-09 08:16:35
我確信它不是來自我的耙子任務。 – 2013-04-09 09:10:37