Rail YML debug: Psych::SyntaxError... at line xxx column y
        
      WriterShelf™ is a unique multiple pen name blogging and forum platform. Protect relationships and your privacy. Take your writing in new directions. ** Join WriterShelf**
      
        WriterShelf™ is an open writing platform. The views, information and opinions in this article are those of the author.
      
  
          Article info
        
        
              分類於:
            
            
                    
⟩
⟩
                  
            
              標籤:
            
            
              日期:
            
            
              創作於:2017/12/16,最後更新於:2017/12/16。
            
          
              合計:228字
          
      
              Like
              
              or Dislike
              
            
          About the Author
          很久以前就是個「寫程式的」,其實,什麼程式都不熟⋯⋯
就,這會一點點,那會一點點⋯⋯
        More to explore
      
       
 
 
 
 
 
 
 


這個 Rails 的 YML Bug 非常非常難找,我剛又遇上了,等到我找到這隻蟲後,才恍然想起,哈,這我以前也遇到,所以,就特留了個紀錄於此,希望對以後有同此遭遇的 rails 同“苦”,有幫助!
基本上,只要你的 YML 有錯,排錯、文法錯誤、多個冒號、⋯⋯ 您都會看到這個 Psync Systax Error,說真的,剛看到還真會被 Psych 嚇到,這不是說“精神有毛病吧⋯⋯”
好啦,講重點,是的,是 YML 有問題,有錯誤確定,但是後面說的行號是錯的,而且真的錯誤是在「後面」,注意~~~ 是「後面」,這真的會氣死人,抓了一輩子的蟲,要想到蟲在後面,還真是“沒辦法”想到啊!我這次的例子還差了快五十行,帥吧~
留個紀錄,下次不用再被嚇到!後面有鬼~~