
Polymorphic Selects in Rails using GlobalIDs Discussion
4
General
This is fantastic Chris thank you, I'm curious how this would work for the edit view of the form?
Travis Smith replied

Installing ruby on rails in ubuntu 24.04
1
General
I am following your tutorial for installing ruby on rails in ubuntu 24.04 using esdf and installed esdf.while installing ruby it downloaded ruby and while configuring the system shut down suddenly....
Andres Carvajal replied

Pass variable to Flash object
2
General
I'm trying to pass a variable to flash messages object. I want to autohide flash messages(not each message) after 5 seconds in Stimulus controller. So I want to be able to set data-flash-autohide-v...
Chris Oliver replied

Edit & Update Blog Post Actions Discussion
1
General
Question: when i removed "blog_posts" from my routes, turning our routes
get "/blog_posts/new", to: "blog_posts#new", as: :new_blog_post
get "/blog_posts/:id/edit", to: "blog_posts#edit", as: :...
Semih Masat replied

Creating a New Rails app Discussion
4
General
Chris, great job and fantastic tutorials. Do you have any suggestions for connecting Rails 7 apps to Snowflake. It seems the only viable option right now that I have found is ODBC connection using...
Carlos Lima replied

How we can use Like queries for searching on encrypted data? I used default Active Record Encryption
0
Databases
class Propose < ApplicationRecord
encrypts :email, :phone_number, :name, deterministic: true
scope :search_filter, -> (params) do
if params[:keyword].present?
where(search_filte...
Vishwani patlan posted

Setup Ubuntu 22.04 Jammy Jellyfish Discussion
8
General
>>>sudo apt install postgresql-11 libpq-dev
for Ubuntu 24.04 it will be:
>sudo apt install postgresql-14 libpq-dev
Stephen Jobs replied

Improving Rails Credentials & Encrypted File Decryption Discussion
0
General

Curious about the opinions for others about the ease of managing javascript/styling with Rails 7.1
0
Rails
Are things working as you expect? Does anyone have any experience moving from Webpack to esbuild or importmaps? Have you done this with a non trivial application using various javascript libs and s...
Doug Mathews posted

How to use Omakase Rubocop Linter/Formatter Rules for Rails Discussion
4
General
What do you think about having a built-in linter that comes with Rails?
Firman replied

Setup MacOS 14 Sonoma Discussion
10
General
Hi Chris, I am doing this on Pub Beta 2, and I am getting this error.
configure: error: something wrong with LDFLAGS="-L/Users/pitosalas/.asdf/installs/ruby/3.0.6/lib "
No amount of googling has...
Emilio G replied

Custom Turbo Stream Actions Discussion
7
General
Great episode! Is there any convention or recommendation for managing the JS code instead of throwing it all in the `application.js`? Something like `app/javascript/stream_actions/console_log.js`, ...
Samuel Couillard replied

Integrate ActiveStorage to existing association system
0
Rails
I have attachment system inplace and thinking to integrate active storage with existing associations, I have polymorphic association and had_many through association, where as active storage using ...
sam posted

Using tailwind css in my rails app, patterned after your blog tutorial. How do I get rid of all the whitespace on each side of the page, I want to use the whole screen?
1
CSS
So I have modified by tailwind.config.js file as such:
const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = {
content: [
'./public/*.html',
'./app/helpers/**/*.rb',
...
Mike Cannon replied

Deploy rails 7.2+
2
Servers
Rails 7.2 dev containers include a compose file, enabling me to run Rails, PostgreSQL, and Redis locally with just Docker installed on my system.
So I created run: rails new --rails-version 7.2.0...
Greg S replied

Tracing Rails Console Command With Ruby IRB/Debug Discussion
1
General
Super useful, thanks!
cjilbert504 replied

Ping external website
2
Rails
What's the best way to do a ping with IndexNow like :
https://www.bing.com/indexnow?url=http://www.example.com/product.html&key=8baa3838e2774b34aaae330c5bfee7c4
formalexclusive replied

How to add Search in Rails using Meilisearch Discussion
8
General
Thank you, Chris.
Can we add aggregations in Meilisearch as we do in ElasticSearch?