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

Node.js not installed. Please download and install Node.js https://nodejs.org/en/download/ Error while bundle exec rake assets:precompile during deployment using capistrano

0
Rails
I already have nodeJS installed in my server. Still showing Node.js not installed. Please download and install Node.js https://nodejs.org/en/download/ I have sprockets as well as webpacker. Spr...
Abhishek Aravindan posted

Which is the simplest way to add ES6 to a Rails 5.1 app?

2
Rails
Hi! As of Rails 5.1.4, which is the most simple way to use ES6 in a Rails application?

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

How do I use easyautocomplete in rails 6?

7
Rails
I tried adding it with yarn and through rails assets but nothings seems to work.
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

rake assets:precompile - JSON::ParserError

2
Rails
I'm looking for assistance with a mysterious `JSON::ParserError` that is popping up while attempting to build a legacy application with minor upgrades (Rails 3.22 -> Rails 5.2.6). It seems to be...
Weston Ellis replied

integrating stimulus with ruby on rails

1
Ruby
Where does the Stimulus team recommend as best practice to put the JS controller files? For example, if I wanted to integrate a version of this walkthrough into an existing rails app?
Chris Oliver replied

DHH's most recent hotwire update...

1
Rails
I just caught a tweet from DHH mentioning a new [hotwire related pull request](https://github.com/rails/rails/pull/42999). I'm curious to know how the go rails community feels about this. Seems lik...
Chris Oliver replied

About Importmap rails gem

8
Rails
Hi Chris, Will you make a video about https://github.com/rails/importmap-rails/, what will be the benefits and hidden costs. Best Regards.
Michael Prince replied

jquery doesn't work in js.erb file

2
Rails
Hey I'm working on an rails 6 application and try to render an partial in an js.erb file but get this error in the chrome console: > Uncaught TypeError: Cannot read property 'append' of null ...
Steven Torrence replied
Solved

Cannot add jQuery to Rails 6 projects

0
Gems / Libraries
I've been trying to make a few apps work with Fomantic UI and the gem works fine, the problem is that to use calendars and modals you need jquery... No probs, I added that by following [this](https...
Nelson Casanova posted

How do I install bootstrap-v4 via yarn?

4
CSS
Hey Guys, I tried to install bootstrap4 via yarn. And I tried it like this: 1. yarn add bootstrap@4.0.0-alpha.6 2. rails webpacker:compile 3. add the line: import 'bootstrap/dist/css/bootstrap' ...
Kjell Morgenstern replied
Solved

Why is application.css working locally but 404 on production server?

5
General
My css works perfect locally, but I get a 404 error for applicaiton.css once deployed. I generated my base app using Jumpstart free version. I confirmed app css is generated on the server in the ...
Chris Oliver replied
Solved

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

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 6 autocomplete with add new

2
Rails
In the past (back in rails 4) I used select2 or selectize to give me the ability to make a text field autocomplete as typed and have the option to create a new item, so basically tagging but only a...

Modern Webpack template on Rails 5.1

1
Rails
I have downloaded this [Adminator template](https://github.com/puikinsh/Adminator-admin-dashboard), which is modern npm/yarn Webpack theme. As stated in the template's homepage, install instruction...
Chris Oliver replied

Planning upgrade from Rails 3 to 5. How to transition assets from pipeline to webpack gracefully ? Coffee & ES6

1
Rails
Hello, We plan to upgrade a production app from Rails 3 to 5.2. We basically plan to use a mirror app since the production app is untested. Current app is using jquery, coffee and asset pipeline ...
Ernesto Tagwerker replied

I am facing problem in running rails server in ubuntu

1
Rails
Hi folks! As a rails newbie, I am facing some issues in spinning up my rails server. By the way, I have a windows machine and I am creating a linux subsystem by ubuntu. Firstly, its showing my webp...

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

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

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