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.
Adrian Grimm
@usmcamgrimm.bsky.social
Ruby on Rails developer. I love Metal, Colts Football, Star Wars, and cats! Marine Corps vet. #VetsWhoCode
Rails devs, what do you recommend as the top skill for interviewing? I'm looking to start applying. @rubyonrails.org.web.brid.gy
Figured out the issue. I was trying to use multiple seed files so I could add a dropdown to select rosters by year. Need to re-think this approach.
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.
Does anyone have their portfolio built with @bridgetownrb.com
Think it's time to start looking for my first job as a Rails developer. Updating my old portfolio but I'm going to start working on a new one with @bridgetownrb.com
Spent some time yesterday and today working with models in Rails. Learned how to use foreign keys to manipulate data in different controllers.
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.
Why use someone else's app when I can make my own? Love watching the launches from my front yard. Made this with Rails and TailwindCSS. launch-monitor.fly.dev
Updated the gemfile.lock with 'bundle update logger' Found the answer in this article: swetanwar.medium.com/how-to-updat...
How to update Gemfile.lock
What is a Gemfile?
swetanwar.medium.com
"You have already activated logger 1.6.2, but your Gemfile requires logger 1.6.1." I don't even have logger in the gemfile for this project so how is the version wrong?
"You have already activated logger 1.6.2, but your Gemfile requires logger 1.6.1." I don't even have logger in the gemfile for this project so how is the version wrong?
I waste way too much time troubleshooting errors and other issues that are caused by dumb little typos...
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
I'm so happy that I'm finally making progress in this Rails app. It's been a pretty disheartening journey
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.
The Ruby language and community have given me so much, so I thought I'd give a little something back as #RubyConf wraps. Introducing Ruby Operator Lookup! A one-stop directory for all the operators and symbols you'll see in Ruby programs. There are sooo many 😅 www.visualmode.dev/ruby-operators
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.
Figured out how to change the color of a toggle based on a condition returned from my API query. Feeling somewhat accomplished today 😎
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 seem to have created an infinite loop with this and I don't know why. date = Date.strptime(launch_date, "%A, %D")
I did it! Used the parklife gem and put my Colts app up on Netlify. Render was ok, but I hated that my small app took 5 minutes to spin up.
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?
Started a new Rails app with Tailwind and was pleasantly surprised how much I like using it
My first post here and it's me patting myself on the back. Struggled to write an API call in a new Rails app with HTTParty, and I finally got it to return the data I want!