Sunday, August 12, 2012

Re: [Rails] Re: Re: trouble with new app in rails

On 12 August 2012 18:36, Sebastjan H. <lists@ruby-forum.com> wrote:
> Colin Law wrote in post #1072089:
>> On 12 August 2012 17:29, Sebastjan H. <lists@ruby-forum.com> wrote:
>>>
>>> I say trouble, because when I've installed with RVM I couldn't use them.
>>> The system kept saying unknown command for ruby and rails and it
>>> suggested to install via apt-get install. So I did. Still nothing. Then
>>> I ran the RVM installs again and now everything appears to be in order.
>>
>> You should not have used apt-get if you are using rvm. But since you
>> have now got it working with rvm that is ok.
>
> This was the only way at the time I could get it working.
>
>>>
>>> However (there's always however with me lately), when I run
>>> "rails new tasks" rails actually generates "new" as the application
>>> folder. And after "cd new" + "rails server" rails generates another
>>> application called "server".
>>>
>>> What can I do?
>>
>> You can use rails 3. The rails command has changed since version 2.
>> The current version of rails is 3.2.8. If you really want to use
>> rails 2 then the guides can be found at
>> http://guides.rubyonrails.org/v2.3.11/
>
> I don't want to use rails 2, this was all installed by default as I
> described above. Are these issues related to Ubuntu? Are other
> distributions more aproppriate for RoR?

Ubuntu is excellent for rails.

> And finally now what? Should I try and change to rials 3 via RVM?

gem install rails
will install the latest version of rails in rvm. Note /no/ sudo,
because you are using rvm.
gem install rails --version a.b.c
will install version a.b.c

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate