TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The First Step for Ruby on Rails

71 pointsby anto210over 13 years ago

9 comments

jeffclarkover 13 years ago
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.
评论 #3119521 未加载
评论 #3119239 未加载
评论 #3119064 未加载
评论 #3119315 未加载
jstepienover 13 years ago
<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.
评论 #3119694 未加载
评论 #3119473 未加载
nicklovescodeover 13 years ago
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.
评论 #3119695 未加载
jefflinwoodover 13 years ago
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.
评论 #3119110 未加载
评论 #3119167 未加载
评论 #3119129 未加载
sidwynover 13 years ago
I did the step up to "[[ -s $HOME/.rvm/scripts/rvm ]] &#38;&#38; . $HOME/.rvm/scripts/rvm", and then tried "rvm install ruby-1.9.2-p290" but it said "rvm: command not found". Ideas?
评论 #3119541 未加载
评论 #3119517 未加载
petercooperover 13 years ago
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" ]] &#38;&#38; . "$HOME/.rvm/scripts/rvm" # Load RVM function' &#62;&#62; ~/.bash_profile </code></pre> (from <a href="http://beginrescueend.com/rvm/install/" rel="nofollow">http://beginrescueend.com/rvm/install/</a>)
stupandausover 13 years ago
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>
briankimover 13 years ago
Quick tip: A Rails IDE like RubyMine (paid) or RadRails (free) is well worth the money if you are just starting out.
rprimeover 13 years ago
Why you added VIM and RVM into the mix? Those are distractions.
评论 #3120368 未加载