I've been following through the online version of Michael Hartl's RoR book: <a href="http://ruby.railstutorial.org/ruby-on-rails-tutorial-book" rel="nofollow">http://ruby.railstutorial.org/ruby-on-rails-tutorial-book</a><p>It's proven to be a GREAT way to learn the basics from the ground up while building an actual app at the same time.
<p><pre><code> copy and paste in the following command:
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
</code></pre>
It is getting more and more popular to come across such installation recipes. "Just execute this command", which will download some code from the net and run it on your machine. Yes, it's easy and quick but it's terribly insecure, especially without HTTPS. Just take a look at <a href="http://npmjs.org" rel="nofollow">http://npmjs.org</a> . Just imagine the results if npmjs.org gets compromised. This trend is troubling.
Nice guide, I wish I had it when I first started rails. However, vim? I love vim, and suggest everyone learns it. But if the point of a guide is to teach the basic installation of ROR, I wouldn't suggest making them open vim, too.
After using rvm, I'd suggest using rbenv (<a href="https://github.com/sstephenson/rbenv" rel="nofollow">https://github.com/sstephenson/rbenv</a>) instead.<p>It doesn't try to do as much, so a little less magic. The biggest thing I like is that it doesn't try to do anything with gems, which is good - I've been trying to use bundler for everything.
I did the step up to "[[ -s $HOME/.rvm/scripts/rvm ]] && . $HOME/.rvm/scripts/rvm", and then tried "rvm install ruby-1.9.2-p290" but it said "rvm: command not found". Ideas?
A nice style, but for beginners, why would you suggest going into Vim (or any editor) with the potential for screwing up? Even RVM's <i>actual installation documentation</i> says to just do this:<p><pre><code> echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
</code></pre>
(from <a href="http://beginrescueend.com/rvm/install/" rel="nofollow">http://beginrescueend.com/rvm/install/</a>)
This seems a bit oversimplified and misses opportunities to teach a lot of the fundamentals about Rails as part of the installation process. I still recommend Agile Web Development with Rails for learning rails: <a href="http://pragprog.com/book/rails4/agile-web-development-with-rails" rel="nofollow">http://pragprog.com/book/rails4/agile-web-development-with-r...</a>