Authlogic Rails 3

Paul Mr wrote:

Rick R wrote:

thats what Im betting on.

Pretty much.. that one creates all the models/scaffolds/controllers the usual way...not even caring about Authlogic::Session::Base

though I assume possibly, manually editing the one item to reflect that instead of activerecord (or whatever it was).

Quoting Paul Mr <lists@ruby-forum.com>:

Paul Mr wrote: > Rick R wrote: > > thats what Im betting on.

Pretty much.. that one creates all the models/scaffolds/controllers the usual way...not even caring about Authlogic::Session::Base

though I assume possibly, manually editing the one item to reflect that instead of activerecord (or whatever it was). --

IIRC, AuthLogic works w/ Rails 3, but doesn't have the new generator structure. Generate it in Rail 2.x and copy the files over.

Jeffrey

I think you should add the following line in your gem file:

gem "rails3-generators"

It is required to add your required generators

UP4B LLC http://up4b.com

Up 4. wrote in post #970286:

I think you should add the following line in your gem file:

gem "rails3-generators"

run "bundle install" or "bundle update" and then run "rails g authlogic:session UserSession" to create UserSession class

It is required to add your required generators (see DIXIS authlogic on rails3 for more information)

UP4B LLC http://up4b.com

GENIO UP_4!!!!!!.... LO QUE FALTABA ERA INDICARLE A RAILS QUE USARA EL GENERATOR INTERNO DE LA GEMA authlogic.!!.. así funciona joya!!.. GRACIAS!!

rails generate model user_session

This works fine for generating sessions in Authlogic for Rails 3 and above versions.

Please, Help Me! I installed "Ruby On Rails -v 3.2.13" on Ubuntun 12.04 amd64 winth rvm. Then I tried to install 'authlogic' from https://github.com/binarylogic/authlogic

When I am trying generate model User_session, I get this error:

I am sorry((( This Plugin work for RoR 3.0, but It is not work for RoR 3.2((( Nothing can be done?

Session will lost sometimes with no reason even if you create it successful.

So, go and use some other gems instead.

I think Devise is probably a better solution.

Colin

Thank You! I shall try to use 'devise'.

devise or sorcery, both good gems with different approaches.

devise has many more features sorcery is more lightweight.

Worth investigating both.

what is sorcery?

what is sorcery?

You could google for rails sorcery to find out.

Colin