开发者

Herkou class changes not detected

开发者 https://www.devze.com 2023-03-20 07:07 出处:网络
I\'m using Herkou for some Rails 3 hosting. I have pushed code to Heroku, and I am getting the following error from the logs:

I'm using Herkou for some Rails 3 hosting. I have pushed code to Heroku, and I am getting the following error from the logs:

NoMethodError (undefined method `format_date' for #<Project:0x00000001938f40>):

This method does exist! I can for example so this:

$heroku console

>> Project.format_date('2011-07-07 10:50')
=> "2011-07-07"

So my code appears to be deployed. Project responds to format_date.

I also tried heroku rest开发者_如何学编程art with no success.

Can anyone help me? Any and all suggestions are appreciated!


Are you sure you are calling format_date on the class itself, like you do in your example, and not on an instance of the class? I.e. Project.new.format_date("2011-07-07 10:50")

0

精彩评论

暂无评论...
验证码 换一张
取 消