Ruby on Rails Community Forum

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

How to Dual Boot Rails Versions Discussion

1
General
This is cool, but what about using a git branch, that can be merged into Master once 6.1 is officially released?
Christopher Slade replied

Create (or not) a BaseComponent to work with TailwindCSS and ViewComponent?

2
Rails
Hi all, this is my first post and I am working with Ruby and Ruby on Rails for about a month. I have years of experience as a web developer but my focus was more on the Frontend part, if you don't ...

How can i get youtube_id form the embedded youtube video in rich text editor?

0
Rails
hello everyone, currently i'm working with rails fast json api. and i came into an issue which i need to response the youtube video which we embedded in the rich text editor to the client. i tried ...
lyden29 posted

How do I pass my wizard form data to my search index page as filters/parameters?

0
Databases
I cannot for the life of me figure this out. I'm using the Algolia search API along with the Algolia gem, but I didn't set it up in the app I'm working on. The Algolia search is attached to my Proj...
Liam posted

How i do two buttons and when i press them bouth then comes a text where it says hello.

0
Javascript
Hi, I can only do one button and when i press the button it comes a I'm only 12 so my English is badtext where it says hello. But How i do two buttons and when i press them bouth then comes a text...
Joe18 posted

How to write a conditional in a create action?

4
Rails
I recently worked through the 4 episodes here on direct uploads to S3 with shrine. I have things setup to upload both images and documents and am now trying to write a conditional to create either...

JSON:API Format and Active Model Serializers Discussion

18
General
Very nice video as always, but there's an editing problem on your video. Check it between 15:00 and 17:00. You actually repeat the same thing twice, but the wordings you use is different, I guess y...
regedarek replied

Native mobile app and Rails

0
Rails
Is it be possible to use both JWT and session auth in Rails, where session auth would be used by web client and JWT by native mobile app?
Balsa Janjusevic posted

Tracking online users with timestamps Discussion

1
General
At scale, wouldn't adding an update call to every action for every user just be hammering the database?
karatepicke replied

Group Chat with ActionCable: Part 5 Discussion

23
General
Hi Chris,How many users is a chatroom-site like this able to handle?thanks,
anasaijaz replied

Hatchbox not returning correct credentials

0
Rails
Hi there, I have deployed an app successfully but the app crashed immediately I tried to login. I ran `bundle exec rails c` and it seems like the values aren't being returned (returns as `nil`) fr...
Christopher Lam posted

hi...i want run bundle install that get error:

1
General
when run install bundle install i get error below(not exist gemfile.lock): An error occurred while installing mysql2 (0.4.4), and Bundler cannot continue. Make sure that `gem install mysql2 -v '0....
Bilal Budhani replied

Best SSC Coaching Institute in Delhi ?

0
General
Excel SSC is the Best SSC Coaching institute in Delhi. Do experience top coaching from highly expertise faculties. Join Excel SSC Coaching Institute to achieve your Goal. Visit - http://www.excelss...
excel ssc5 posted

How do I upload images using (Administrate Gem + ActiveStorage + Rails 6)

2
Rails
Hey Everyone I'm working on rails 6 and building an admin panel using Administrate Gem. I have a product model "has_many_attached :images" but administrate does not recognizing: images_attachme...

Rails for Beginners Part 40: OmniAuth CSRF Protection Discussion

0
General
thanks
steven_007 posted

How are folk handling ownership of an ActiveStorage::Attachment?

3
Rails
Hi all, With carrierwave etc it was easy enough to associate a User with an uploaded image. Things are a bit different with ActiveStorage::Attachment & Blobs. For example, suppose I have a`Pa...
Rahul Paul replied

Transcode a video and move to a remote server

3
Rails
Hi Chris, I'm following the introduction video where show the usage of Shrine and FFMPEG. What I'm trying to do is having the users upload the videos, then transcode them to MP4 and save to a dedi...

Who is using Hashicorp Otto?

7
General
Hi All, I've recently gotten back into my rails development after some Salesforce related projects at my work. In that time I had to format my laptop from Ubuntu to Windows 10. I've been struggli...

Auto-removing notices from a turbo_stream

1
Rails
I am appending a notice partial via turbo_stream on a few actions for a model. I am running into an issue on figuring out the best way to remove these notices after a set period of time. The actua...
Tabish Iqbal replied

Learning Ruby on Rails? Join our newsletter.

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