Learning Ruby on Rails - Part 2, or, kill me, kill me now.
So, I've been building my first Rails app following a pretty ambitious series of posts by Glenn Goodrich.
It started really well, "first you need RVM". Ok, RVM, cool. SoĀ RVM is a Ruby environment manager. It manages "rubies". Easy, got it.
But what are rubies? Well "Rubies" are Ruby runtimes...? So they interpret and execute ruby..? I'm guessing they also have their own compatible/incompatibleĀ gemsets? Whatever, no time to getting bogged down by these details, let's move on.
So Gemsets are sets of Gems. And Gems are libraries... is that right?
Ok, Gemsets are libraries, fine. Then I install Rails. Got it.
I Just Want To Build a Web App
But then I have to install RSpec, got it. But now I have to use brew, and bundler. What?
And now in the command line I'm using Rake, Brew, Bundler, RVM, Rails, Spec! Why, why so many command tools! I just want to build a website!
Then I have to edit a gem file config, or something, for bundler I think. I have to comment out bits and specify version of gems. I just want the latest version! Oh, I also have to create a rvm-config file in my root or something. Why? Well the article never says.
Ok, done all that. Now I write a test. But I have to comment out bits and create other files somewhere for supporting Mongo (which I want to use).
So I write my test, but the RSpec fails. Not the tests fails, but the actual running of RSpec fails. I have no idea why because the article assumes it won't fail. Most likely it's because I edited one of the config files incorrectly, but which one? Again, the article never really explains why you're editing these configs.
I Give Up, or, Let's Try RubyMine
So, needless to say, after spending at least a few hours just trying to "setup" and understand everything I've decided to "pivot" and just install RubyMine, which I'm hoping will abstract all framework stuff from me and just let me build an app?
Next post, how did RubyMine go...