What is Scaffolding in Ruby on Rails?

You may be learning Rails & you read that you have to create a “scaffold” to get your Rails application started… Easy! You can do this using the rails g scaffold command. But what is scaffolding? “Scaffolding is a temporary structure used to support a work crew to aid in the construction, maintenance and repair … Read more

How to Work With Directories in Ruby

Did you know that you can navigate your file system with Ruby? With the Ruby “Dir” class. You can list directory entries, change your current directory & even create new folders! Here’s an example: filenames = Dir.entries(“.”) This entries method returns an array of filename entries. Every entry is a string, so you’ll need to … Read more