I have recently been trying out Atom text editor and noticed that I couldn’t get Rubocop to work. I kept getting:
Error: env: ruby_executable_hooks: No such file or directory
After some quick searching, the following solution came up on SO. Basically you need to go back to your ~/.atom/config.cson and make the following changes.
Fixed everything for me and now it works like a charm!
I just recently taught an intro to Ruby on Rails class and the hardest part was not explaining data types or object oriented programming but how to install everything you need to begin with. If you are using a Mac, the good and bad news is it already has Ruby installed.
While you can play around with Ruby out of the box, if you want to do something more serious with it such as Rails, you will need to install the latest version & tell your computer to use that path rather than the one already on your system.
But before we even get there, using a package manager to download, maintain and easily install/uninstall other programs is also super helpful. For this, we are going to use Homebrew.
Step 1: Find the Terminal
First, you need to find your terminal (also known as a command prompt or command Line interface CLI).
Step 2: Install Homebrew
You will probably get a prompt asking you if you will install xCode. Its a large file and there are ways to not install it but Homebrew depends on xCode so just install it.
Step 3: Install Ruby
Step 4: Install Git
Step 5: Checking Git and Ruby installations
Step 6: Install Sublime Text
Pretty straight forward. Sublime is a text editor. This where we will edit code.
go to here and download it.
Part 2 will cover scaffolding a basic CRUD function application in Rails as well as Postgresql.