Welcome Guest | Login

Installing and Using the LoginGenerator Gem

I wanted to add some simple login capabilities to my site.

I'm following this tutorial but I can't seem to get it rolling.

The first step is:
gem install login_generator

but I get the error:
ERROR:  While executing gem ... (Errno::EACCES)
   Permission denied - /usr/local/lib/ruby/gems/1.8/cache/login_generator-1.2.2.gem

Any ideas?  This is my first time to try to install a gem.

2007-01-30 04:54 PM

If you are installing a gem on your HostingRails account, be sure and to follow this tutorial. If you are installing a gem on your local machine you may need to type:
sudo gem install <gem_name>
You will be prompted to enter your password, so be sure to have that ready.

2007-01-30 04:57 PM

Well it looks like the gem login_generator is already installed.

So the second step in the tutorial is
ruby script/generate login Account
but I keep getting the error:
ruby: No such file or directory -- script/generate (LoadError)
Clearly I don't really know what I'm doing.  Also, is there some sort of database of online lessons and tutorials that can help me get a better handle on RoR?  Similar to the W3 Schools

2007-01-31 01:19 PM

Hi there - you need to run this command from the root of a rails app.

Also - there are many blogs and such for tutorials.  The Rails wiki site is OK, too.  But there isn't any exhaustive site out there yet (we have plans to make something like that, though...)

2007-02-01 03:57 PM

Phillyh, I think you will get that error if you aren't inside your rails app directory.
cd ~/<my_rails_app>
script/generate login Account
As far as tutorials, I would recommend starting with these tutorials to get started.

2007-02-01 04:01 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up today!