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.
Last Updated on November 30, 2019 by Christopher G Mendla
I screwed up my droplet (ruby on rails) on my digitalocean hosting by running bundle install as root. When you do that, there is a warning that this will break rails for other users. I haven’t taken the time to figure out how to fix that. Since I was getting started with that hosting, I decided to simply delete the existing droplet and recreate it.
When people are starting out with Ruby on Rails, one of the key elements is to be able to view the contents of the SQL file. For most people, they will use the SQLLite database. This is a limited implementation of SQL. The tables are all stored in one file which is located in /db of your Rails project.
Before starting to use any hosting account for a Ruby on Rails project, check the versions they are offering.
I found a tool called brakeman that does vulnerability scans of rails applications. It installs as a gem and you run it from the command line. I had some issues with it using up memory but found a way around it.
I found a helpful summary of coding styles for rails.
There are times when I want to remark out code in a rails view for testing purposes.
I tried using the =begin / =end that can be used in a controller but I couldn’t get that to work. i.e
I found a great cheatsheet for Rails at
It’s definitely worth a look