# A. Import the YAML Library
require 'yaml'
# B. Create an array
names = %w[chris sandy josie billy suzie]
# Example 1 : Converting an array into YAML using: to_yaml
yaml_example1 = names.to_yaml
puts yaml_example1
# Example 2: Converting an array into YAML using: dump()
yaml_example2 = YAML::dump(names)
puts yaml_example2
# Example 3: Loading YAML back into an array using: load()
array_example = YAML::load(yamloutput2)
puts array_example
Deploying Rails 5.x on AWS ElasticBeanstalk using AWS CodeCommit
How to deploy your Rails app on ElasticBeanstalk (including S3 buckets, security groups, load balancers, auto-scalling groups and more) using CodeCommit.
Installing Vue + Rails 5.x
How to install Vue.js framework on Ruby on Rails.
How to install Rails 6.x on a Mac
We will use four different package managers to set up our environment. Homebrew is a package manager for Mac. We will use brew to install rbenv. rbenv is...

Subscribe to new posts
Processing your application
Please check your inbox and click the link to confirm your subscription
There was an error sending the email