GitHub provides alerts for vulnerabilities in your code

Last Updated on November 23, 2020 by Christopher G Mendla

GitHub will provide an alert if it finds vulnerabilities in your repository. 

Tags: , Read more
Read more

The importance of keeping Rails updated

Last Updated on November 20, 2020 by Christopher G Mendla

During my interviews in my recent job search, I’ve seen an alarming number of companies running on Rails 3.x and 4.x. Unless serious work arounds have been applied, these versions have multiple vulnerabilities. 

Tags: Read more
Read more

Upgrading to Rails 5.2 succeeded

Last Updated on November 18, 2020 by Christopher G Mendla

Updating to Rails 5.2 has a couple of ‘gotchas’. 

Tags: Read more
Read more

Upgrading Ruby on Rails to Rails 5.2 created a train wreck

Last Updated on November 12, 2020 by Christopher G Mendla

I have a Ruby on Rails site that I use as an online portfolio. GitHub released a warning that there were vulnerabilities in Rails and associated gems. I started incrementally upgrading Rails. However, when I tried to push the Rails 5.2 update to production, the site crashed. Here is how I recovered

Tags: , Read more
Read more

Using ‘rake stats’ and ‘rake about’ to get some basic information about a Ruby on Rails application.

Last Updated on November 3, 2020 by Christopher G Mendla

The simple command, rake stats will show you how the lines of code are distributed in your Ruby on Rails application. ‘rake about’ will show you the ruby and rails versions, the database engine and some other helpful information.

Tags: , Read more
Read more

Installing and using Rubocop in a Ruby on Rails App

Last Updated on October 21, 2020 by Christopher G Mendla

Rubocop is a code linter for Ruby on Rails. When installed, configured and used properly it ensures that code is formatted properly and will identify some security issues.  This post will cover installation and fixing basic auto-correctable errors. 

Tags: Read more
Read more

Showing the file name before committing to an upload of a CSV file in Ruby on Rails

Last Updated on September 16, 2020 by Christopher G Mendla

I was working with a Rails App where the user would select a category for an upload and then upload the CSV file. I wanted to show the user which category they selected along with the file they are attempting to upload. Tags: Read more
Read more

Shading Cells in Ruby on Rails depending on the contents of the cell

Last Updated on September 16, 2020 by Christopher G Mendla

I wanted to change the background color of a cell in Ruby on Rails depending on if the contents of and expires field was past or not.  This could be useful for dashboard type apps or pages. i.e. red/yellow/green

Tags: Read more
Read more

Site Monitoring with Ruby on Rails

Last Updated on September 15, 2020 by Christopher G Mendla

I needed a way to show the status (Up/down) of internal Ruby applications.  I found an answer on StackOverflow that pointed me in the right direction (Apologies that I can’t locate that post). . I modified that somewhat by putting it into a method and passing the site name to it.

Tags: Read more
Read more