# Generate authenticated user error

**URL:** <https://www.ruby-forum.com/t/generate-authenticated-user-error/131003>\
**Category:** Rails\
**Created:** [March 5, 2008, 3:36am UTC](https://www.ruby-forum.com/t/generate-authenticated-user-error/131003 "2008-03-05T03:36:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![capslock118](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/df705f/32.png) [@capslock118](https://www.ruby-forum.com/u/capslock118)\
**Post date:** [March 5, 2008, 3:36am UTC](https://www.ruby-forum.com/t/generate-authenticated-user-error/131003/1 "2008-03-05T03:36:53Z")

</div>

I am pulling my teeth out over here. It makes sense that the second step  
in setting something (role\_requirements in this case) I have problems -  
thats just how I roll…pun intended!

I run this:  
`
ruby script/generate authenticated user sessions
`  
after running this  
`
sudo ruby script/plugin install http://rolerequirement.googlecode.com/s
â€¦ quirement/
`

as told by this: [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/rolerequirement/)

and I get this error:

`
./script/../config/../config/environment.rb:61: undefined local variable
or method `config' for main:Object (NameError)
        from .../vendor/rails/railties/lib/commands/generate.rb:1:in
`require'
        from .../vendor/rails/railties/lib/commands/generate.rb:1
        from script/generate:3:in `require'
        from script/generate:3
`

replace … with the full directory.

Could someone please translate. Thank you smile
