Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/kotlin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 红毯宝石识别bootsy gem中的降价文字问题_Ruby On Rails_Markdown_Redcarpet - Fatal编程技术网

Ruby on rails 红毯宝石识别bootsy gem中的降价文字问题

Ruby on rails 红毯宝石识别bootsy gem中的降价文字问题,ruby-on-rails,markdown,redcarpet,Ruby On Rails,Markdown,Redcarpet,我是RubyonRails新手,目前正在从事一个类似于StackOverflow的项目,用户可以就编码提出问题并提交答案 我最近安装了bootsy gem,以创建一个很好的用户界面,允许用户提交照片和文本。然而,自从我安装了这个gem之后,我的红地毯gem就不再识别bootsy_区域内内联代码的格式 以下是new.html.haml/edit.html.haml页面中的问题代码: = f.bootsy_area :content, editor_options: {color: fa

我是RubyonRails新手,目前正在从事一个类似于StackOverflow的项目,用户可以就编码提出问题并提交答案

我最近安装了bootsy gem,以创建一个很好的用户界面,允许用户提交照片和文本。然而,自从我安装了这个gem之后,我的红地毯gem就不再识别bootsy_区域内内联代码的格式

以下是new.html.haml/edit.html.haml页面中的问题代码:

      = f.bootsy_area :content, editor_options: {color: false, font_styles: false, link: false}, class: "form-control", id: "question_content"
  .question-content
    = markdown(@question.content)
这是显示在显示页面上的问题代码:

      = f.bootsy_area :content, editor_options: {color: false, font_styles: false, link: false}, class: "form-control", id: "question_content"
  .question-content
    = markdown(@question.content)
这是我的应用程序_helper.rb文件中使用红地毯的代码:

def markdown(text)
  Redcarpet::Markdown.new(Redcarpet::Render::HTML, autolink: true).render(text).html_safe
end
关于如何修复视图中显示的内联代码,有什么建议吗?谢谢大家!