繁体   English   中英

Heroku Rails 3应用程序崩溃-错误H10(应用程序崩溃)

[英]Heroku Rails 3 app crashing - Error H10 (App crashed)

我的网站在本地mashine上运行良好,但在heroku上崩溃。

这是我的heroku日志: http : //pastie.org/private/ligfhv4tjqmodclkwxc21q

相关日志部分:

[36m2011-12-01T19:42:53 + 00:00 app [web.1]:←[0m /app/.bundle/gems/ruby/1.8/gems/ctivesupport-3.0.3/lib/active_support/dependencies .rb:239:在'require'中:/ app / app /helpers/kategoris_helper.rb:2:语法错误,意外的kEND,期望$ end(S yntaxError)

我的筹码是Bamboo-ree 1.8.7

我认为这与该帮助程序有关,但不确定:

module KategorisHelper
  def sortkat(column, title = nil)
    title ||= column.titleize
    css_class = column == sort_column ? "current #{sort_direction}" : nil
    direction = column == sort_column && sort_direction == "ASC" ? "DESC" : "ASC"
    link_to title, params.merge(:sort => column, :direction => direction, :page => nil), {:class => css_class}
  end
end

好吧,错误消息基本上意味着end太多( syntax error, unexpected kEND, expecting $end ,缺少的endsyntax error, unexpected $end, expecting kEND )。 ruby -c不会抱怨您的助手,您是否复制了整个代码?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM