All threads / GDPR and Rails 6
Ask A Question

Notifications

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 (https://github.com/Alex-D/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.

Thanks.

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:
https://stackoverflow.com/questions/62789771/how-to-add-the-cookies-eu-banner-to-rails-6-site/64118286#64118286

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 66,029+ 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.

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

    © 2022 GoRails, LLC. All rights reserved.