You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm with a Rails 5 application and adding html_pipeline gem with the EmojiFilter extension so that I can process the text sent by the users and filter the emojies.
I followed the usual steps adding the gemoji gem so that I can use the EmojiFilter, but when I add it to the pipeline declaration and try to use the pipeline I get the error:
Missing context keys for HTML::Pipeline::EmojiFilter: :asset_root
deffiltered_contentpipeline=HTML::Pipeline.new[HTML::Pipeline::PlainTextInputFilter,HTML::Pipeline::MarkdownFilter,HTML::Pipeline::SanitizationFilter,HTML::Pipeline::AutolinkFilter,HTML::Pipeline::EmojiFilter],{asset_root: "the url of your assets"}# <------# E.g. GitHub uses this: "https://assets-cdn.github.com/images/icons/emoji/unicode"pipeline.call(content)[:output].to_send
Hi,
I'm with a Rails 5 application and adding html_pipeline gem with the EmojiFilter extension so that I can process the text sent by the users and filter the emojies.
I have the following:
I followed the usual steps adding the gemoji gem so that I can use the EmojiFilter, but when I add it to the pipeline declaration and try to use the pipeline I get the error:
I added this on my assets.rb initializer:
And also ran "rake emoji" but the error is still there.
Any ideas of I could solve this?
Thanks!
Marco
The text was updated successfully, but these errors were encountered: