# Login generator error, any login generate sure for ROR 2.0.2

**URL:** <https://www.ruby-forum.com/t/login-generator-error-any-login-generate-sure-for-ror-2-0-2/126185>\
**Category:** Rails\
**Created:** [January 16, 2008, 5:11am UTC](https://www.ruby-forum.com/t/login-generator-error-any-login-generate-sure-for-ror-2-0-2/126185 "2008-01-16T05:11:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArcOrg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ba8739/32.png) [@ArcOrg](https://www.ruby-forum.com/u/ArcOrg)\
**Post date:** [January 16, 2008, 5:11am UTC](https://www.ruby-forum.com/t/login-generator-error-any-login-generate-sure-for-ror-2-0-2/126185/1 "2008-01-16T05:11:49Z")

</div>

hi, all:  
after upgrade to ROR 2.0.2, the login\_generator gem can not generate  
login,  
the error message is  
No such file or directory - C:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/  
lib/rails\_generator/generators/components/scaffold/templates/  
layout.rhtml

Does anybody have idea to slove this problem, or any suggest about new  
ACL system that suit for ROR 2.0.2  
Thanks  
Arch

---

<div class="post-metadata">

**Author:** ![ArcOrg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ba8739/32.png) [@ArcOrg](https://www.ruby-forum.com/u/ArcOrg)\
**Post date:** [February 29, 2008, 1:08am UTC](https://www.ruby-forum.com/t/login-generator-error-any-login-generate-sure-for-ror-2-0-2/126185/2 "2008-02-29T01:08:45Z")

</div>

Hi

The ROR 2.0.2 templates have now the .html.erb extension (the .rhtml is  
the old one).  
In order to solve your problem you have two solutions:

a) modify the generator script directly on your gem directory (not  
recommended)

or

b) copy your generator into your home folder ~/.rails/generators/ and  
then modify the generator script

Bye

---

<div class="post-metadata">

**Author:** ![ArcOrg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ba8739/32.png) [@ArcOrg](https://www.ruby-forum.com/u/ArcOrg)\
**Post date:** [January 3, 2010, 8:15pm UTC](https://www.ruby-forum.com/t/login-generator-error-any-login-generate-sure-for-ror-2-0-2/126185/3 "2010-01-03T20:15:29Z")

</div>

Franco S. wrote:

> Hi
> 
> The ROR 2.0.2 templates have now the .html.erb extension (the .rhtml is  
> the old one).  
> In order to solve your problem you have two solutions:
> 
> a) modify the generator script directly on your gem directory (not  
> recommended)
> 
> or
> 
> b) copy your generator into your home folder ~/.rails/generators/ and  
> then modify the generator script
> 
> Bye

Hi  
It is working after changing the same in login\_generator
