Adrian Grimm

@usmcamgrimm.bsky.social

Ruby on Rails developer. I love Metal, Colts Football, Star Wars, and cats! Marine Corps vet. #VetsWhoCode

Building a Colts API in Rails for use in another Rails app I built. Rebuilt the whole thing this morning. Took me a few hours of typo-correcting and bug-fixing, but I managed to successfully seed the database.

Building a Colts app with Rails but in the app, I updated my seed data in the players.rb file and now I'm getting 2 or 3 duplicates of almost every player. Any idea what I'm doing wrong? None of the player entries themselves are duplicated.

Added a form in a rails app, and the form had 3 inline buttons at the top, because I wanted them on the 2 pages I was using this form. The buttons were submit, delete, and back. When I submitted the form, it was automatically deleting the entry and redirecting to the form instead of the main page.

I've been scrolling through API documentation for the past couple hours trying to figure out why the data I'm getting doesn't match what they show. Shame I have to put it aside to do my real job now

Figured out how to convert time zones in Rails and set time zones based on a user's time zone. It was hard to find documentation online and managed to get Copilot to help me sort it out.

Installed flyctl and put up a build of my new Rails app in minutes. I can't believe how easy it was. Wish I'd gone this route before instead of using a different service for my Colts app.

Feels like I've been trying to learn Ruby and Rails for a long time. Still feels good to get things figured out and working as intended! Setting a helper with the same name as a method in the helper causes a recursive loop.

I have a Rails ap I'd been hosting on Render, but I'm trying to build it as a static page to host elsewhere. @geetfun.com suggested I try Sitepress but I'm trying to avoid rebuilding this app again. Is there a gem or some other way to generate static site files from a Rails app?