Setup MacOS 10.14 Mojave Discussion

0
General
brilliant! I had been struggling with brew installation as z3 will not install on macOS 10.14 wish I had found this sooner!
joemcerlane posted

Components with Phlex in Rails Discussion

8
General
I feel like components in Ruby are super duper handy for arguments and other complex helper methods. Phlex takes it a step further with the HTML helper methods so you don't even really have to leav...
Christian Sedlmair replied

Deploy Multiple Rails Apps to Same DigitalOcean Droplet?

16
General
I've used your guide to [deploy a Rails app](https://gorails.com/deploy/ubuntu/14.04) to a DO droplet -- which was extremely helpful! However, now I'm at the point where I'd like to take advantage...
Andrés Howard replied

Syncing Videos With Video Hosting API Client Discussion

6
General
Thanks for sharing these steps for setting up Windows Subsystem for Linux (WSL) on Windows 10. For those looking to set up WSL on Windows 11, the process is quite similar.
Carmen replied

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

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

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

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

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

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

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