我正在编写 Redmine 插件并在控制器中有此代码:
@project = Project.find(params[:id])
@wiki = @project.wiki
@page = @wiki.find_page(params[:page])
@export1 = textilizable @page.content, :text, :attchments => @page.attachments
调用此代码后,我收到错误:
TypeError (can't convert String into Hash):
app/helpers/application_helper.rb:516:in
parse_wiki_links'
app/helpers/application_helper.rb:492:in
gsub!'
app/helpers/application_helper.rb:492:in `parse_wiki_links'
是什么导致了问题,有什么办法可以解决吗?
谢谢。