All threads / Webpacker Javascript Embed Code Snippet & Scoped Styles Discussion

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Webpacker Javascript Embed Code Snippet & Scoped Styles Discussion

@Chris Oliver, Nice series tutorial. I really enjoy this series of tutorial.
If you have time and If you will convert this embeddable series with React JS then it would be nice. I like your tutorials and also I increase my skills through your tutorial.

Reply

I just notices a rails helper method for escaping the html on show.html.erb, :html_escape

example:

helper.send(:html_escape, 'is a > 0 & a < 10?')

It might be easier.

Reply

Wait, that might not work well.

Reply

skip_before_action :verify_authenticity_token is being used in comments controller - seems like a bad idea. how can we ensure csrf protection?

Reply

In case anyone else runs into this issue with Rails 6 and Webpacker, I needed to replace: sources_from_pack_manifest with sources_from_manifest_entries.

I just ran into that. The Rails error suggested the same thing.

How do you access stylesheets? There are only js files in sources_from_manifest_entries

Reply
Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 38,311+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.