Phil On Rails
Subscribe
Sign in
Home
Archive
About
Latest
Top
Rails HTTP Status Codes
Handy guide to named statuses
Jan 10
•
Phil on Rails
1
Share this post
Rails HTTP Status Codes
philonrails.substack.com
Copy link
Facebook
Email
Note
Other
July 2023
Loading Dynamic Content on Opening Bootstrap Modals with Stimulus JS
Don't load data on view load, but on modal open
Jul 25, 2023
•
Phil on Rails
2
Share this post
Loading Dynamic Content on Opening Bootstrap Modals with Stimulus JS
philonrails.substack.com
Copy link
Facebook
Email
Note
Other
February 2023
Using Tabulator with Stimulus
This is turning into a little series for me! I am loving moving things out of my html.erb files and into Stimulus controllers. It is cleaning things up…
Feb 23, 2023
•
Phil on Rails
1
Share this post
Using Tabulator with Stimulus
philonrails.substack.com
Copy link
Facebook
Email
Note
Other
Rails ActiveRecord: create_with, where for new records
More 'things I forgot' - using create_with and where in making new records. We can make use of the resulting association to create new records that…
Feb 16, 2023
•
Phil on Rails
Share this post
Rails ActiveRecord: create_with, where for new records
philonrails.substack.com
Copy link
Facebook
Email
Note
Other
Rails: Read-Only Attributes
Seems simple, but I'd 'forgotten' about it, so here's a reminder.
Feb 14, 2023
•
Phil on Rails
1
Share this post
Rails: Read-Only Attributes
philonrails.substack.com
Copy link
Facebook
Email
Note
Other
Avoiding N+1 with scopes
While trying to do some optimizations I ran into a block of code that, despite using `:includes` was still hitting the database all the time. Here's…
Feb 8, 2023
•
Phil on Rails
1
Share this post
Avoiding N+1 with scopes
philonrails.substack.com
Copy link
Facebook
Email
Note
Other
Rails 7: Filtering Data with ChartKick & Stimulus
I've been using Chartkick for years, but upgrading to Rails 7 made me take a look at how I'd been trapping Chartkick events and upgrade it to work with…
Feb 7, 2023
•
Phil on Rails
Share this post
Rails 7: Filtering Data with ChartKick & Stimulus
philonrails.substack.com
Copy link
Facebook
Email
Note
Other
ActionMailer - use parameters not parameters
Passing in parameters using `with` instead of method parameters gives a degree of freedom - and snazz! - to your ActionMailers. Read on to find out…
Feb 4, 2023
•
Phil on Rails
Share this post
ActionMailer - use parameters not parameters
philonrails.substack.com
Copy link
Facebook
Email
Note
Other
Counting occurrences with #tally
There are many ways to count how many times the same `x` appears in an array. Here's one more for you!
Feb 2, 2023
•
Phil on Rails
1
Share this post
Counting occurrences with #tally
philonrails.substack.com
Copy link
Facebook
Email
Note
Other
Finally! An environment variable for Rails log level
Is it me, or should we have had this back in 2006 or so?
Feb 1, 2023
•
Phil on Rails
1
Share this post
Finally! An environment variable for Rails log level
philonrails.substack.com
Copy link
Facebook
Email
Note
Other
January 2023
Rails 7 and Tabulator
Start writing today. Use the button below to create your Substack and connect your publication with Phil On Rails I always seem to be working on…
Jan 31, 2023
•
Phil on Rails
1
Share this post
Rails 7 and Tabulator
philonrails.substack.com
Copy link
Facebook
Email
Note
Other
August 2021
Real life Ruby on Rails tips, tricks, news and opinions
Welcome to Phil On Rails by me, Phil Smy. Thinker, musician, writer, and chief cook and code washer at ZonMaster.com, LotteryCanada.com, and others…
Aug 15, 2021
•
Phil on Rails
Share this post
Real life Ruby on Rails tips, tricks, news and opinions
philonrails.substack.com
Copy link
Facebook
Email
Note
Other
Share
Copy link
Facebook
Email
Note
Other
This site requires JavaScript to run correctly. Please
turn on JavaScript
or unblock scripts