# Restful\_authentication errors

**URL:** <https://www.ruby-forum.com/t/restful-authentication-errors/155430>\
**Category:** Rails\
**Created:** [December 11, 2008, 6:23pm UTC](https://www.ruby-forum.com/t/restful-authentication-errors/155430 "2008-12-11T18:23:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarkusW](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@MarkusW](https://www.ruby-forum.com/u/MarkusW)\
**Post date:** [December 11, 2008, 6:23pm UTC](https://www.ruby-forum.com/t/restful-authentication-errors/155430/1 "2008-12-11T18:23:26Z")

</div>

When I run

[code] script/generate authenticated user --include-activation [/  
code]

it seems to work at first, but then it reports:

" The name ‘SessionsHelper’ is either already used in your application  
or reserved by Ruby on Rails. Please choose an alternative and run  
this generator again "

I’ve heard that having both acts\_as\_authenticated and  
restful\_authentication installed at the same time can cause this  
error, but that’s not the case with my app.

I just started a new app and installed only the restful\_authentication  
plugin.

Any suggestions?

---

<div class="post-metadata">

**Author:** ![MarkusW](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@MarkusW](https://www.ruby-forum.com/u/MarkusW)\
**Post date:** [November 2, 2009, 6:04pm UTC](https://www.ruby-forum.com/t/restful-authentication-errors/155430/2 "2009-11-02T18:04:22Z")

</div>

MarkusW wrote:

> When I run
> 
> [code] script/generate authenticated user --include-activation [/  
> code]
> 
> it seems to work at first, but then it reports:
> 
> " The name ‘SessionsHelper’ is either already used in your application  
> or reserved by Ruby on Rails. Please choose an alternative and run  
> this generator again "
> 
> I’ve heard that having both acts\_as\_authenticated and  
> restful\_authentication installed at the same time can cause this  
> error, but that’s not the case with my app.
> 
> I just started a new app and installed only the restful\_authentication  
> plugin.
> 
> Any suggestions?

Surely you’ve been able to solve the problem, but I publish a possible  
solution for anyone who has the same problem. A proper way to use the  
generator of restful\_authentication is:

[ruby] script/generate authenticated user session â€”include-activation

I hope it’s useful.  
greetings  
Fer T.  
Arg.

---

<div class="post-metadata">

**Author:** ![MarkusW](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@MarkusW](https://www.ruby-forum.com/u/MarkusW)\
**Post date:** [November 2, 2009, 6:12pm UTC](https://www.ruby-forum.com/t/restful-authentication-errors/155430/3 "2009-11-02T18:12:12Z")

</div>

MarkusW wrote:  
[…]

> I just started a new app and installed only the restful\_authentication  
> plugin.

Then please, forget about restful\_authentication and use Authlogic.  
restful\_authentication is easy to set up, but puts a lot of  
unmaintainable generated crap into your application.

> Any suggestions?

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid
