When writing a Rails app I love polymorphic relations. If there’s a good chance I can reuse a model with other objects and I can’t make it a PORO (plain old Ruby object), my relation of choice is likely to be a polymorphic one. Once challenge with polymorphism is documenting the interface future objects will… Continue reading The Shared Green: Rails Polymorphism Commons
I’ve been working on a Ruby program and had received a new version of an API to interface with. The new version had moved from GET requests to POST requests, so where before I was getting information with:
I’ve recently had two instances where I’d create a form: but when I look in my browser, no form tags have been created!
I was in a discussion recently where the topic of Title IX came up. This is an innocent enough topic normally, but one of the people in the conversation was someone who had a sports management major and, clearly sometime during their education, had been told about a lot of the negative sides. In essence… Continue reading Everyone Has Their Confederate Soldier
The open source Visual Town Budget is a great visualization tool that can be used to help your staff, council, or the public more easily see how the budget stacks up. I wanted to get it running locally on my laptop first so I could get the date working before posting it up for staff… Continue reading Setting Up Visual Town Budget on your Windows PC
I was writing a SQL query to pull data from an existing vendor database into a report. Instead of just ‘dbo.users’ having an ‘id’ column, they normally named the primary key ‘user_id’. While we can argue about the semantics, it had a nice effect that I could search for the column name across the entire… Continue reading Where is That Column in Microsoft SQL?
So my wonderful 6-year old Dell XPS 13 Developer edition’s soldering at the power port finally gave way, leaving me with a fully function laptop with only one little issue that it can’t get power. The sent me packing to my ‘backup’ Windows 10 laptop. I really wanted to keep working in a Linux environment… Continue reading Rails 5, Postgres, & Windows Subsystem for Linux
The Rails Side I’ve recently started using StimulusJS as the web framework for a Rails 5.2 application. In Part 1 I built a simple type-ahead search form. In this second half I walk through using a controller and partials to render the results, just like a traditional Rails app.
Part 1 – The Front End I’ve recently started using StimulusJS as the web framework for a Rails 5.2 application. My first task with it was to build a simple type-ahead search form.
Post-mortem of my time at Voterheads; what went well and what not so much.