Skip to content

An Inseparable Peace

Primary Menu
  • Home
  • About
  • Contact

Category: TIL

TIL: Running Rails 5 / Ruby 2 on Ubuntu 2022.4

Posted on October 29, 2022October 29, 2022 by Karl

I saw an article that Ubuntu 2022.10 had been released, which spurred me to finally upgrade my Dell laptop from 2018.4 to 2022.4 Everything went great!… until I went to write some code.

Continue Reading

TIL – Generating a Model that `references` an Alias

Posted on October 16, 2022October 16, 2022 by Karl

Let’s say you have a Business class in Rails..and maybe you want to records mergers, so you want to create a Merger class. Normally, when we create a model, we use the references type: so rails will automatically create both the <model>_id fields and the index: In this case though, we don’t want to reference […]

Continue Reading

TIL – Using a Cloudinary Resource with the Wicked PDF Gem

Posted on May 26, 2022October 16, 2022 by Karl

Today I was working on an pdf.erb view template in rails. In this case, I wanted to add into the PDF some images that we stored in cloudinary. My first instinct was to use the image tag that’s part of the cloudinary gem: However, the image would not display. Since I’ve rendered images in other […]

Continue Reading
Copyright all rights reserved | Theme: Minimal Blog by WPinterface.