Ask A Question


You’re not receiving notifications from this thread.

GDPR and Rails 6

Mads Holm Oldfield Nielsen asked in Javascript

I am trying to add a GDPR consent javascript to my rails 6 app.

I have found the cookies-eu-banner (, which should be easy as pie to integrate, but I just can not get it to work.

I would absolutely love a short description of how to do it on Rails 6 and webpacker.



Hi, Did you figure out a solution for this? I can't seem to get it to work either... :/


Hi Amanda.

I got it working following rossta's advice stackoverflow:

I did have to restart the app several times before it worked.

Hope this helps you.

Join the discussion

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

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

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

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2023 GoRails, LLC. All rights reserved.