Ruby on Rails Community Forum

Action listener for submit on return??

1
General
How would I make this code (that refers to a select box: https://developer.snapappointments.com/bootstrap-select/examples/) submit the selection by pressing the return key? function sample_functio...
Denis Omerovic replied

How to Add Pagination with Pagy Discussion

20
General
I couldn't have explained it better - even being the author of Pagy. Thank you!
Greg S replied

How to Efficiently Search for 1milion+ Users in Postgresql and Rails?

0
Databases
I have a user model and around 1milion user records in my database and I'm using ILIKE to match the users by name or email. Sometimes it's very slow since I have a lot of records in my DB so I'm lo...
Denis Omerovic posted

Upgrading to Rails 7

0
Rails
Hi everyone, I had a rails 6.1 app and thought I'd upgrade it to Rails 7 to enjoy the new features. I thought moving from 6.1 to 7 would be fairly straight forward, as I know there's people upgrad...
Tom Dringer posted

How would one go about sorting ActiveStorage has_many_attached objects?

6
Rails
Hey there,Just wondering if anyone can shed some light here as the Google search is pretty thin right now for ActiveStorage.Is there a way to a a property (say sort_order) to each of the has_many_a...
Tomas Valent replied
Solved

Fetching usernames,profile pictures from Twitter

0
General
How do I fetch the usernames,profile picture in the Beginners tutorial? When I go into console and look the user up, only the twitteraccount id and user_id are shown whereas name, username and imag...
Aayush Shrestha posted

How to troubleshoot esbuild in Rails 7

0
Rails
With the arrival of Rails 7.0, i have tried moving from webpack to esbuild but struggle with it. I know that theoretically, creating a file jquery.js and importing it in application.js import jque...
Vorkosigan76 posted

Ruby question - Generating a nested hash with group_by

5
Ruby
I'm trying to create a nested hash. I have a hash with the year as the key and an amount for that year. hash = {2017 => 55000, 2018 =>55500, 2019 => 60000} I need to divide the amount for...
Chris Oliver replied

How do I implement my own buttons and functions for Trix

4
Gems / Libraries
Hey, i want to have the possibility to add more functionality in my text editor trix. I think about basic stuff as centering text etc. and more advanced stuff like post spotify songs or twitter fe...
freddyK1 replied

Do you have trial version

0
General
Hello, I have started learning Ruby on Rails recently. Do you offer trial version? Also, if I join on month-to-month basis, can I upgrade to annual plan? Thanks.
Uday posted

Submit a form from different page

0
Rails
Hi everyone, Hope everyone is well. I have a Driver form (which is basically the user - I can do current_driver and stuff) and one of the fields is a boolean checkbox for 'subscribe to newsletter'...
Tom Dringer posted

TypeError: $(...).chosen is not a function

2
General
I am using Rails 6. I have installed jQuery, Bootstrap, & Popper as explained in one of the videos and Bootstrap is working fine. Now I have to use Chosen jQuery plugin. I installed it using Y...
0agautam replied

Following the Ubuntu article to install Ruby, Rails, DB etc fails halfway through.

1
General
Hello! Thanks for looking at this. After going through this article => "(h)(t)(t)(p)(s)(:)(/)(/)gorails(.)com/setup/ubuntu/20.04#final-steps" On the Git configuring step and after I type in ...
savannahx replied
Solved

How to change value of data that retrieve without updating database.

0
Rails
I want to change the value of the data I retrieve from the database. For example, when the data I retrieve is negative, I want to convert it to positive. However, the change must not affect the dat...
Lusiana Siahaan posted

Rails for Beginners Part 37: Creating a GitHub Repo to store our code Discussion

2
General
Thanks for the time Cris , great content.
Eric Chua replied

Ruby on Rails + React Software Engineer - Remote Opportunity

0
Ruby
Meta IT North America is looking for a Ruby on Rails FullStack Engineer Technical Requirements: Bachelor degree in computer science, software engineering, or similar majors Minimum 5 years of ov...
Louise posted

Rails application create error

0
Ruby
Why does Rails throw error when im trying to create new application everytime some new error is throwing
Yash posted

What is the best way to import node_modules CSS in a Rails 7 Esbuild project?

0
Rails
Rails 7.0 Ruby 3.0.3 Esbuild / Tailwind Question: what is the best way to import the CSS from a node package. After running the yarn add command, the JS loads very easily but as you know adding `im...
Stéphane Paquet posted

Data Structure - Going back to the basic with Ruby

1
Ruby
Hi Chris,Could you help me with books, material, videos about Data Structure with Ruby? I have been asked a lot about it in the interview. I am rusty about it and there are tons of pieces about on ...
William Kennedy replied
Solved

Pattern for Managing Third Party Integrations

2
Rails
I'm building a small internal app that is essentially glue between several open APIs. Namely, QuickBooks, G Suite, Stripe, and Twilio. Authorizing these third party integrations, maintaining toke...
William Kennedy replied

Learning Ruby on Rails? Join our newsletter.

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