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...

rendering issue

2
Rails
OK, so I fairly new at rails, but i'm at the point where i feel confidence enough to start making my own side project which i decide would be a clone of facebook in rails. first i'm working on is g...
Solved

Switching Between Live and Test Modes in Stripe Connect with Pay Gem

0
Rails
We have set up Stripe Connect in our Rails application to allow customers to sell their products. Currently, we support purchasing products from connected accounts only in live mode. However, we re...
Sandhiya Thangaraj posted

Audited vs papertrail gem for auditing table changes?

4
Rails
I'm currently looking to use either one of these two for auditing changes made by specific user roles on a rails 6 ecommerce app using mysql. They both seem similar and I'm currently leaning toward...
anniesteuber replied

Mac Sequoia: Rails installs but command line does not see it

2
Rails
I followed the directions but errors running the mise global command: gorails.com/setup/macos/15-sequoia Now, with this setup the command line sees ruby and gem. export PATH="/opt/homebrew/opt/rub...
Greg S replied

Tutorial on verifalia gem

2
Rails
Having trouble setting this up on my Rails 7 app. A tutorial would be very helpful! Some goofball is using a bot to clog up my db with fake users. I've got him throttled to one a day, but it's quit...
Cassandra Pace replied

Devise multiples scopes

1
Rails
Hi !, i'am using devise in rails, and i want to use devise for multiples scopes such as User, Member, Partner, etc..., But i would like to separete them both into diferents models, and there contro...
Jacqueline Lavender replied

What are the best practices for generating SEO friendly urls in Rails 5?

7
Rails
What is the best way to generate SEO friendly urls? The Rails default is to put the id in the URL e.g articles/2 I want to be able to have a url like this articles/article-heading Previously I...
William Kennedy replied
Solved

How do I install a Bootstrap 5 theme with Rails 7

2
Rails
Hello, I have trouble using a Bootstrap 5 theme (like those we can find on themes.getbootstrap.com, for instance) with a Rails 7 application I'm building. I'm not sure which is the best way to inte...
Tommy Ortega replied

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

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

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