Hello all,
I am completely new to Ruby on Rails. When i install gems some of them
get installed to ~/.gem folder as apparently the other location is not
writable.
What is the best way to go about this: chmod the folder in Library,
let gems go to ~/.gem, sudo install gems always? What do you guys use?
Thanks in advance,
Wojtek
On Sun, Nov 14, 2010 at 10:15 PM, Wojtek G. [email protected]
wrote:
Hello all,
I am completely new to Ruby on Rails. When i install gems some of them
get installed to ~/.gem folder as apparently the other location is not
writable.
What is the best way to go about this: chmod the folder in Library,
let gems go to ~/.gem, sudo install gems always? What do you guys use?
-
Don’t chmod system folders unless you know what you are doing
(doubly so on a, I guess, Mac. Steve might get upset about you
thinking you know better than him).
-
Where to install gems depends on whether you want them available to
every user, or just yourself, and there’s no real answer to that.
require (in 1.9) RubyGems (pre-1.9) are smart enough to find gems in
either case, if you deploy your stuff elsewhere (or use bundler to
make sure you distribute the correct gems and gem versions).
–
Phillip G.
Though the folk I have met,
(Ah, how soon!) they forget
When I’ve moved on to some other place,
There may be one or two,
When I’ve played and passed through,
Who’ll remember my song or my face.
On Nov 14, 10:24pm, Phillip G. [email protected]
wrote:
- Don’t chmod system folders unless you know what you are doing
Phillip G.
Though the folk I have met,
(Ah, how soon!) they forget
When I’ve moved on to some other place,
There may be one or two,
When I’ve played and passed through,
Who’ll remember my song or my face.
Thank you kind sir.
I have another question. It’s a bit silly really. I am trying to make
a new app but typing “rails new appName” creates a folder named “new”
instead of “appName”.
Baby steps over here 
On Sun, Nov 14, 2010 at 10:30 PM, Wojtek G. [email protected]
wrote:
Thank you kind sir.
You are quite welcome. 
I have another question. It’s a bit silly really. I am trying to make
a new app but typing “rails new appName” creates a folder named “new”
instead of “appName”.
Well, you have all the information you need to solve your problem. 
(hint: You don’t need “new” for a new Rails app.)
And two tips for the future:
The Rails forum is the best place to ask Rails related questions.
This here list is the best place to ask Ruby questions. 
–
Phillip G.
Though the folk I have met,
(Ah, how soon!) they forget
When I’ve moved on to some other place,
There may be one or two,
When I’ve played and passed through,
Who’ll remember my song or my face.
On Nov 14, 6:30pm, Wojtek G. [email protected] wrote:
I have another question. It’s a bit silly really. I am trying to make
a new app but typing “rails new appName” creates a folder named “new”
instead of “appName”.
gem update rails
rails ‘new’ was introduced in Rails 3.0, check your version of rails
(rails --version) and will know.
If the gems you installed where installed in ~/.gem, you need to add
the ~/.gem bin folder to your $PATH
Il 14/11/2010 22:30, Wojtek G. ha scritto:
I am completely new to Ruby on Rails. When i install gems some of them
get installed to ~/.gem folder as apparently the other location is not
writable.
i suggest forget the system gem command and use RVM
(http://rvm.beginrescueend.com/) so you have a clean system and
everything you need to develop your software is inside the ~/.rvm folder
(ruby versions and gems).
I have another question. It’s a bit silly really. I am trying to make
a new app but typing “rails new appName” creates a folder named “new”
instead of “appName”.
maybe you’re using Rails 2.X and not Rails 3. Run gem list
and show
the result
On Nov 14, 10:46pm, Phillip G. [email protected]
wrote:
Though the folk I have met,
(Ah, how soon!) they forget
When I’ve moved on to some other place,
There may be one or two,
When I’ve played and passed through,
Who’ll remember my song or my face.
Thank you again.
Noted, this is indeed a Ruby group not a Rails one
Sorry about
that.
Cheers,
Wojtek
On Nov 14, 2010, at 1:30 PM, Wojtek G. [email protected]
wrote:
I have another question. It’s a bit silly really. I am trying to make
a new app but typing “rails new appName” creates a folder named “new”
instead of “appName”.
The ‘new’ arg was introduced in mid-stream of the Rails 3 beta releases.
Do rails -h to see what syntax your version uses. You may need to
update.
Jose
Jose Hales-Garcia
UCLA Statistics