Ruby on Rails Community Forum

Is there a way to benchmark the time spent on each callbacks for a ActiveRecord?

0
Rails
I have 20+ before_save callbacks for a active record. Is there a way in rails to measure the time spent on each callbacks while saving a object into the store?
Arul posted

Drag and Drop sortable lists with Rails & Stimulus JS Discussion

22
General
Chris, thank you so much for this! I was actually going through the old drag and drop tutorial yesterday and today to update it for Rails 6. I seem to be having an issue both with this tutorial an...
Reece Jones replied

How to initialize datepicker in stimulus controller?

4
Javascript
I'm using datepicker and turbo frame. The datepicker is broken when the frame is replaced. I'm doing turbo:load in javascript file, it works when navigating between pages, but it will be broken whe...
Umair replied

Rails for Beginners Part 29: Tweets Index & New Actions Discussion

10
General
At around 6:30 where you add the /auth/twitter/ link, the method: needs to be added as a :post correct, for OAuth 2.0?

ActionText attachments not visible in Trix editor after domain migration

3
Rails
Hi All, We recently moved domains and have noticed an issue with how ActionText attachments are displayed in the Trix editor. They display correctly in the show view, just not in the editor. Arti...
Emiliano López replied

Mimic Heroku CLI on Hatchbox with rake tasks

0
Servers
Hi guys, Weirdly enough the thing that was holding me back the most from moving away from Heroku to Hatchbox was the ease of use of the Heroku CLI in my daily workflow. So this weekend I decided...
Vincent Bakker posted

How do i wrap calls to update_attributes via transaction?

0
Rails
I have two models User/Car. User can have many Cars. How do i prevent updates to cars if my user object is invalid? Currently Rails does not wrap the attribute update(cars) in a same transaction a...
Arul posted

how do i can send otp when user press forgot password button

0
Rails
I used devise gem and twilio for authentication and otp. Now i want to send otp to user when he/she press forgot button and after verify it goes to devise edit password where display new password a...
Hassan Nawaz posted

TailwindCSS Stimulus Components Gem not working in new rails 7 application

2
Gems / Libraries
Attempting to use the following gem in a new rails application: https://github.com/excid3/tailwindcss-stimulus-components Main reason is that the new supported tailwind gem that you can install di...
Bryan Beshore replied

redmine perforamce

0
Ruby
ruby 2.6 rails 5.2.6 nginx-passenger redmine 4.2.6 ubuntu 20.04 10 cpu 32 gig ram my question?? how i can increase performace for my redmine to handle 500 req/sec? in rails and mysqld and nginx-pas...
ashrafalzyoud posted

Uppy Video

2
Rails
I've followed your tutorial and haven't been able to get uppy pop up to open upon click of "upload". Any ideas as to why?

JSON Web Tokens with Devise & Warden Discussion

15
General
Great tutorial.
Aproplat replied

Why You Should Focus On Writing Code With Clarity Discussion

4
General
Good article Chris, ruby has the clarity implied, programmers don't... however "ubiquitous language" is something that could help to programmers on this, thanks for share your thoughts!

such specific cases

0
General
Do situations often occur when an ordinary person can sue a construction company and win it? I am interested in statistics, maybe you know such specific cases.
Jan Papi posted

Content ideas

1
General
GraphQL on rails - basics - various ways to solve N+1s
Filippo Massarelli replied

Which native app technology to pair with Rails

6
General
We are currently developing a rails application for a new startup and we are trying to determine which front end and native app technology we should combine with it. We are looking at React JS an...
Smithjoara replied

The Rails db:system:change command Discussion

7
General
Great to change the database when we create default sqlite. that maintains the previous gem version ... generates confusion when looking for errors.
Jesus replied

Setup Ubuntu 14.04 Trusty Tahr Discussion

0
General

Speed up videos

1
General
Hi Chris, Not really a rails question, but I just wanted to see if you could add a video speed feature as I can go through your tutorials at half the time. Cheers, Chris

Trouble with a lending library query

3
Databases
Let's say you operate a library. You have so many patrons and so many books you need a Rails app and database to keep your sanity. The basic schema looks something like this: ```ruby create_tabl...

Learning Ruby on Rails? Join our newsletter.

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