Ruby on rails 红毯宝石识别bootsy gem中的降价文字问题
我是RubyonRails新手,目前正在从事一个类似于StackOverflow的项目,用户可以就编码提出问题并提交答案 我最近安装了bootsy gem,以创建一个很好的用户界面,允许用户提交照片和文本。然而,自从我安装了这个gem之后,我的红地毯gem就不再识别bootsy_区域内内联代码的格式 以下是new.html.haml/edit.html.haml页面中的问题代码: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
= 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
关于如何修复视图中显示的内联代码,有什么建议吗?谢谢大家!