Ruby on Rails Thursday, December 26, 2013



On Wednesday, December 25, 2013 5:43:20 PM UTC-5, Dan Boyle wrote:
I have spent hours trying to get some version of Rails installed and all to no avail. It seems there are many people who get the same errors but nobody seems to have any answers. 

I am new to both Rails and Ubuntu.  This is where I am trying to set it up. 

Most recently I went to rubyonrails.org and it suggests to use Rails 4.0 and Ruby 2.1 and to use rbenv to install rather than RVM. 

It says it installed it but then it doesn't work. 

When I type: ruby -v

I get...

rbenv: ruby: command not found

The `ruby' command exists in these Ruby versions:
  2.1.0

What is this telling me?  It says it isn't found and that it does exist.  Huh? 

Why is this so difficult?  Any insights to help me get my head around all of this would be most welcomed.

Dan

 


One of the reasons this becomes difficult, particularly when responding on a board like this, is that things change quickly.  You are talking about multiple operating systems, multiple versions of ruby, multiple versions of rails, multiple tools for managing them.  I still see questions on Rails 2 and, quite frankly, that was so long ago I don't remember.  On top of that, you will be faced with choices such as rbenv vs. RVM, ERB templates vs. HAML, etc. and everyone has their arguments as to which is better.

My advice to someone starting out is not to use the standard rails docs.  The edge guides are very well written but, to me, they are more of a reference.  I would start with a good tutorial.  Be default, the tutorial will make these choices for you, but will give you detailed instructions on installing and using them.  For example, www.railstutorial.org is one that is commonly recommended (and I recommend it as well).  That particular tutorial uses RVM, ERB, and Rspec.  Once you have a basic understanding, you can then explore the other options and determine which are best for you.  

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f979dd63-e1ef-4466-aef3-b3be1adfecde%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment