restful_authentication errors

9 views
Skip to first unread message

MarkusW

unread,
Dec 11, 2008, 12:23:04 PM12/11/08
to Ruby on Rails: Talk
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?

Fer T.

unread,
Nov 2, 2009, 12:04:22 PM11/2/09
to rubyonra...@googlegroups.com


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.
--
Posted via http://www.ruby-forum.com/.

Marnen Laibow-Koser

unread,
Nov 2, 2009, 12:12:12 PM11/2/09
to rubyonra...@googlegroups.com
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
mar...@marnen.org

Reply all
Reply to author
Forward
0 new messages