Day One of… Forever?
I’m going to learn how to code in Ruby on Rails a little bit each day. I’ll share my experience along the way to hold myself accountable. Come along with me!
Rails Day One:
brew upgrade ruby-installand
brew upgrade chruby(they’d been installed on my laptop in the past. If I was starting from scratch I’d need to
brew installthem and not just upgrade them)
- Installed the latest version of Ruby:
ruby-install ruby 2.5.1
gem install bundlerand
gem install rails
rails new mofo-on-rails
bundle(I wouldn’t really have to do this because
rails newdoes this automatically. But in the future, if I update the
Gemfile, I’d do a
bundle installto change the
gem installis similar to
npm install -g(install it globally)
bundle installis like
Gemfileis like a
package.jsonbut more human readable.
- We use
chrubyto change context between versions and implementations of Ruby.
- My computer was too full to update Xcode (Xcode was required for the
ruby-install) so I had to remove a bunch of stuff (Planet Earth Season 2, Insecure, etc.) and then uninstall Xcode and reinstall it. So, it just… takes a long time to do things sometimes. And I practiced patience. Yay.
Next post, here.