Rails:在index.atom.builder中使用应用程序助手

时间:2014-10-06 18:58:44

标签: ruby-on-rails

如何在index.atom.builder视图文件中使用应用程序助手?

尝试使用它会为“test123”抛出“未定义的方法'xmlschema'”:String

编辑:这是导致问题的代码。

# index.atom.builder
atom_feed do |feed|
  # this application helper method1 returns a string
  feed.updated method1(Time.now)  
end

0 个答案:

没有答案