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
Create an account Log in

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

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

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