On Thursday, May 16, 2013 4:41:01 PM UTC-4, Colin Law wrote:
>
> On 16 May 2013 21:35, Love U Ruby <[email protected] <javascript:>> 
> wrote: 
> > Colin Law wrote in post #1109259: 
> >> On 16 May 2013 18:50, Love U Ruby <[email protected] <javascript:>> 
> wrote: 
> >>> then why I got the error: 
> >> I did say I /think/ you have installed it.  Obviously you have not. 
> >> What happens when you install it, as has been suggested numerous times 
> >> on the this thread, by 
> >> gem install rails 
> >> 
> >> Colin 
> > 
> > which version of rail I need to install, as I am using ruby2.0.0p0 ? 
>
> You should not choose the version of Rails that is right for Ruby, you 
> should decide which version of Rails you want then make sure you have 
> an appropriate version of Ruby.  Remember that with rvm you can easily 
> install another version of ruby.  Also you can install multiple 
> versions of Rails. 
>
> Assuming that you are starting by working through a tutorial then 
> install the version of rails that the tutorial requires. 
>
> When you come to writing your own app then presumably you will want 
> the latest stable version, or perhaps you want to go with the beta 
> version of Rails 4.  That is for you to decide. 
>
> Colin 
>

I'm a little confused by these posts as well.  If you executed the script 
you posted in your original post without any errors, rails should have been 
installed.  Obviously, you either didn't do that or there were errors.  

There are a few things in that script that are not, IMO, optimal.  First, I 
would not install rails with the --pre flag unless you are experienced with 
Rails and truly intend to test an unreleased version.  Second, his/her 
first action is to install a bunch of modules starting with 
build-essential, openssl, etc.  My only issue is that RVM, like Rails, is 
constantly being updated/upgraded and this list quickly gets dated.  I 
would install RVM as follows:

Install curl as follows:

sudo apt-get install curl

Then install RVM:

\curl -L https://get.rvm.io | bash -s stable

Once RVM is installed, run:

rvm requirements

it will give you an updated list of modules to install.

I would also run

rvm notes

it will give you other helpful notes on the install.

At this point, as has already been posted above, I strongly recommend 
www.railstutorial.org.  The tutorial assumes you have RVM installed 
already, but it then walks you through the installation of ruby, rails, 
git, etc.  so I'm not going to go into it.  There are two versions of the 
tutorial online, a 3.2 version and a 4.0 version (the 4.0 version is beta). 
 I agree with Colin, you should choose the version of ruby, rails, and gems 
that the tutorial uses.  This is particularly important with the 3.2 
version.  If you don't use the versions of rspec and capybara that the 
tutorial uses, you will be very frustrated.


-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/a026b041-3438-4f53-8646-73d443ff5f3e%40googlegroups.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to