How do I introduce a cookie consent banner in Rails 6?

3
Javascript
What is the current go-to way to show a cookie-consent banner (as required in the EU) with Rails 6 and Webpacker?
Tworedkites replied

ViewComponents and Tailwind CSS JIT

1
CSS
I created a flash view component to display flash messages. It does work, but the javascript trigger its display does not work as expected. Instead of displaying on the spot, it waits for like 5 s...
Stéphane Paquet replied
Solved

How to import javascript from Gems with webpacker

4
Ruby
Ive come across an issue where some gems I want to use (specifically social-share-button) need to have a javascript file imported but with webpacker in rails 6, not quite sure how to do that now
Uttam replied
Solved

How do I add Zurb foundation-sites using webpacker?

5
CSS
Hey Jason! For the most part, you'll just follow their instructions which is usually `yarn add package` and an import or require of the package in your application.js. https://foundation.zurb.co...
Jerome . replied

Cannot Reset Devise Password

1
Gems / Libraries
I am currently using devise, pretty much straight out of the box, the only changes i've made is custom views. The problem I am having is that I cannot reset a user's password. I follow the link ge...
Dylan replied
Solved

How do I add a favicon in rails 6 through packs

2
Rails
How do I add a favicon in rails 6 through packs
Stéphane Paquet replied

Sorting Images using Active Storage

25
Rails
I'm experimenting with Active Storage to manage images. I got the multiple uploads working, but I want to use acts_as_list position with jQuery sortable to manage their order using ajax, like in [t...
Tony Serkis replied

Hotwire/Turbo + Webpacker/Stimulusjs

0
General
I think I'm confused. I love the functionality of Hotwire and experimented a little with it in a fresh app. I don't understand though, if I can also have Stimulusjs running - I have different needs...
Bevin posted

GDPR and Rails 6

2
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 ju...
Mads Holm Oldfield Nielsen replied

Rails repeats Webpacker packages if I go backwards (OwlCarousel, DataTables)

2
Rails
Hello there. I've got a Rails app that repeats packages if I go back to the page that's supposed to render them. For instance, my OwlCarousel with two images will multiply and have the carousel n...
cratag replied
Solved

DataTables Install via Webpacker

4
General
Anyone get this to work? Details here: https://datatables.net/forums/discussion/57642/installation-issues-rails-yarn-webpacker#latest
Greg Blass replied
Solved

Rails 6 webpacker with theme implementation error.

0
Rails
I am creating one rails application with the latest version 6.1.3 and ruby version 2.7.2. I have one old theme and I want to integrate it into my application. But somehow I can not able to integra...
bhadresh chotaliya posted

Vue JS server side rendering with rails webpacker

6
General
I'm trying to figure out a solution for server side rendering of a vue js app using rails and webpacker. This article comes out top in a google search but is pretty much useless: https://medium.c...

Angular 8 with Rails 6?

2
Javascript
I'm working on getting Angular 8 working with Webpacker and Rails 6 and almost everything is working except for template rendering. When I go to the app and inspect, I can see the component selecto...
Sami Dghim replied

Webpacker failing to compile environment.js after upgrade to webpacker 5.0 gem

1
Javascript
For some odd reason, I receive "**Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - configuration has an unknown property...
giovanni panasiti replied

Question about SQL Queries and my routes

0
Rails
## Hello I'm a beginner on Rails and I have questions about my forum project. I have some Categories which can contain many Themes. And Themes can contain many Topics Here is what I want with m...
Neb19 posted

docker screencast?

6
General
Hi whole community, recently i'm learning something about docke, my question is: is gorails planning make a screencast about docker? when?. (i didn't found any about docker here) great videos. thanks
Richie McMahon replied

installed ruby and then rails but unable to start local server successfully

0
Rails
how to address this:92:depot tesfaye$ rails server => Booting Puma => Rails 6.1.1 application starting in development => Run `bin/rails server --help` for more startup options Exiting /Us...
Tesfaye Mentor posted

Shrine default_url with webpacker

1
Rails
I am using Rails 6.1.1 with webpacker and Shrine. The issue I am coming across is using the default URL plugin with webpacker based assets. When I use it in development it seems to load just fine b...
Dieter Lunn replied
Solved

Webpack trying to serve incorrect files

1
Rails
I am using new relic with my app, and it seems there are often 404s that show up. The file it is trying to load is an older `packs/js/application-blah.js`, sometimes one revision old, sometimes th...
Willard replied

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.