JavaScript not working for Bootstrap 5 on Rails 7

5
Rails
Hello, I have started learning Ruby on Rails recently. I came across your site when trying to figure out issue I am having when installing Bootstrap 5 with Rails 7. The bootstrap framework is insta...
Malinda Schmeler replied

How to determine acceptable memory baseline for my application?

7
Rails
Hey everyone, I have a Rails app deployed on Render's "Starter" plan which only includes 512MB of memory. My Rails app is a very simple blog that doesn't do anything crazy (as far as I know) with r...
Adam Taylor replied

Fatal - not a git repository on server (deployed with Capistrano)

1
Rails
Some time recently, my app started throwing `fatal: not a git repository (or any of the parent directories): .git` on the server. It shows up if I ever remote in and run a bundle exec command (e.g....
attractive colt replied

How do I dynamically update views when objects change

5
Rails
Hello, I have objects called lockouts. I have several views where the users lockouts are listed or displayed. I want to update those views without having to refresh the page. So if an attribute of ...
LOLCONCEPTS replied

How to send Webhook?

11
Rails
I'm building a content management service which needs to send a webhook everytime the user saves a record. What's a best practice to send webhooks in a rails app? A LOT of tutorials are about rece...
Chris Oliver replied
Solved

Can a Rails app send messages through Signal Messenger?

4
Rails
I'm trying to figure out if it's possible to have a Rails application send messages to user via Signal messenger (as opposed to an email or SMS). Has anyone tried to do this?
Waqas Mo replied

How can I squish SQL for log tidiness (automatically)?

3
Rails
Hello everyone, I’m dealing with a challenge in my codebase where there are numerous multiline SQL heredocs being logged. While these may be helpful for local debugging, they become a hassle when ...
Simon Deis replied

When pre/eager loading an association, is there any way to get the associated data from a cache?

2
Rails
``` class Category < ActiveRecord::Base # columns: name has_many :books end class Book < ActiveRecord::Base # columns: title, category_id belongs_to :category end ``` Given the abov...
DuaneOgburn replied

Running into render build error related to Tailwind

9
Rails
Following along with the Build a Blog lesson and currently trying to deploy on render. I can't seem to pass the below error during build - has anyone else seen this before? Locally tailwind is wo...
Chris Oliver replied

How do I create a reply comment system?

12
Rails
I have been trying to get the hang of rails and I understand most of Rails but I'm currently stuck on how I would go about and create a reply commenting system. For example, just like on GoRails.&n...
beckham daniel replied

How do I access these submitted Stripe card parameters in my controller action?

0
Rails
I'm having a confusing issue with a checkout process I've created for an online shop (Rails 7.2.0, MYSQL database). I'm using the Stripe Gem to process payments. It is working fine but I need to us...
Tee posted

ActiveMailer .with method

1
Rails
Hi everyone, What is the reasoning to use .with over the just passing the args using regular ways? for ex: class UserMailer < ApplicationMailer def welcome_email @user = params[:user] ...
Chris Oliver replied

ActionText and Globalize error

5
Rails
Hi! I have application which is using [globalize gem](https://github.com/globalize/globalize/) and i planning to start using ActionText. So, for example i have model called Business ``` class Busi...

How to include javascript node_modules dependencies in Rails Engine?

4
Rails
I'm working on fork of `simple_discussion` gem which is Rails Engine to extend the functionality of forum in the parent Rails application. I'm adding Markdown support using SimpleMDE. I've thought...
crowdhamburger replied

How to correct Error 401 Unauthorized, using a multiple devise model ?

1
Rails
I'm doing a mini-project, for which I'm using two devise models, a user model and a advisor model. When I log in as an advisor, I'm redirected to a 'pages_advisors' page. On this page, there's a li...
Clément NICOLAS replied

Why aren't Tailwind UI components displaying properly?

0
Rails
Is anyone else recently having issues with Tailwind UI components not displaying properly? For example, let’s examine the first “Stacked” component: **tailwindui dot com/components/application...
Hideko Endo posted

Javascript not working in production

5
Rails
I am using Rails 7 with importmap, everything works fine in development, but in production none of the javascript works. Specifically, my channels files are of the "wrong MIME type" giving a 404, ...
Derek Hobson replied

Struggle with Rails 7, esbuild, and Tailwind CSS Asset Loading

3
Rails
Recently, I ran into an issue while setting up **esbuild** and **Tailwind CSS** in my Rails 7 app. Despite following all the recommended steps, my **stylesheets** and **JavaScript files** simply wo...
Florian Osterhus replied

Form with references field

1
Rails
I have a form with references field: <%= form.label :name, style: "display: block" %> <%= form.text_field :name %> <%= form.label :city_id_id, style: "display: block" %...

Testing Rails ActionCable Channel

1
Rails
I followed along with the Online user tracking with ActionCable and was able to get it all working. I replicated a similar channel in another app and again it works great, however when I came to te...

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

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

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