Authlogic Rails 3

Paul Mr wrote:

Rick R wrote:

On Sun, Sep 12, 2010 at 10:14 PM, Paul Mr [email protected] 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).

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
http://www.dixis.com/?p=352 for more information)

UP4B LLC
http://up4b.com

Quoting Paul Mr [email protected]:

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

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
http://www.dixis.com/?p=352 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!!

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:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[email protected]:/home/glafir/RoR/ic# rails generate session
user_session
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/activerecord-3.2.13/lib/active_record/dynamic_matchers.rb:55:in
method_missing': undefined local variable or methodinheritable_attributes’ for ActiveRecord::Base:Class (NameError)
from
/usr/local/rvm/gems/ruby-1.9.3-p392/bundler/gems/authlogic-85b2a6b3e999/lib/authlogic/acts_as_authentic/base.rb:64:in
acts_as_authentic_modules' from /usr/local/rvm/gems/ruby-1.9.3-p392/bundler/gems/authlogic-85b2a6b3e999/lib/authlogic/acts_as_authentic/base.rb:44:inadd_acts_as_authentic_module’
from
/usr/local/rvm/gems/ruby-1.9.3-p392/bundler/gems/authlogic-85b2a6b3e999/lib/authlogic/acts_as_authentic/email.rb:11:in
block in included' from /usr/local/rvm/gems/ruby-1.9.3-p392/bundler/gems/authlogic-85b2a6b3e999/lib/authlogic/acts_as_authentic/email.rb:9:inclass_eval’
from
/usr/local/rvm/gems/ruby-1.9.3-p392/bundler/gems/authlogic-85b2a6b3e999/lib/authlogic/acts_as_authentic/email.rb:9:in
included' from /usr/local/rvm/gems/ruby-1.9.3-p392/bundler/gems/authlogic-85b2a6b3e999/lib/authlogic/acts_as_authentic/base.rb:96:ininclude’
from
/usr/local/rvm/gems/ruby-1.9.3-p392/bundler/gems/authlogic-85b2a6b3e999/lib/authlogic/acts_as_authentic/base.rb:96:in
<top (required)>' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:inrequire’
from
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in
block in require' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:inload_dependency’
from
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in
require' from /usr/local/rvm/gems/ruby-1.9.3-p392/bundler/gems/authlogic-85b2a6b3e999/lib/authlogic.rb:59:inblock in <top (required)>’
from
/usr/local/rvm/gems/ruby-1.9.3-p392/bundler/gems/authlogic-85b2a6b3e999/lib/authlogic.rb:6:in
each' from /usr/local/rvm/gems/ruby-1.9.3-p392/bundler/gems/authlogic-85b2a6b3e999/lib/authlogic.rb:6:in<top (required)>’
from
/usr/local/rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/runtime.rb:72:in
require' from /usr/local/rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/runtime.rb:72:inblock (2 levels) in require’
from
/usr/local/rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/runtime.rb:70:in
each' from /usr/local/rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/runtime.rb:70:inblock in require’
from
/usr/local/rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/runtime.rb:59:in
each' from /usr/local/rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/runtime.rb:59:inrequire’
from
/usr/local/rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler.rb:132:in
require' from /home/glafir/RoR/ic/config/application.rb:5:in<top (required)>’
from
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands.rb:24:in
require' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands.rb:24:in<top (required)>’
from script/rails:6:in require' from script/rails:6:in
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

gem list
+++++++++++++++++++
*** LOCAL GEMS ***

actionmailer (3.2.13, 3.2.12, 3.2.8)
actionpack (3.2.13, 3.2.12, 3.2.8)
activemodel (3.2.13, 3.2.12, 3.2.8)
activerecord (3.2.13, 3.2.12, 3.2.8)
activeresource (3.2.13, 3.2.12, 3.2.8)
activesupport (3.2.13, 3.2.12, 3.2.8)
arel (3.0.2)
authlogic (3.2.0)
bcrypt-ruby (3.0.1)
builder (3.0.4, 3.0.3)
bundler (1.3.4)
ckeditor (4.0.2, 3.7.3)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.6.2, 1.6.1, 1.3.3)
diff-lcs (1.2.1, 1.1.3)
erb2haml (0.1.4, 0.1.2)
erubis (2.7.0)
execjs (1.4.0)
gravatar_image_tag (1.1.3)
haml (4.0.1, 3.1.7)
haml-rails (0.4, 0.3.5)
hike (1.2.1)
hpricot (0.8.6)
i18n (0.6.4, 0.6.1)
journey (1.0.4)
jquery-rails (2.2.1, 2.1.2)
json (1.7.7, 1.7.5)
lazybox (0.2.5, 0.2.1)
mail (2.5.3, 2.4.4)
mime-types (1.21, 1.19)
mini_magick (3.5.0, 3.4)
mousetrap-rails (0.0.9, 0.0.5)
multi_json (1.7.2, 1.7.0, 1.3.6)
mysql (2.9.1, 2.8.1)
mysql2 (0.3.11)
nokogiri (1.5.9, 1.5.5)
orm_adapter (0.4.0)
polyglot (0.3.3)
rack (1.4.5, 1.4.1)
rack-cache (1.2)
rack-ssl (1.3.3, 1.3.2)
rack-test (0.6.2, 0.6.1)
rails (3.2.13, 3.2.12, 3.2.8)
rails3-generators (1.0.0)
railties (3.2.13, 3.2.12, 3.2.8)
rake (10.0.4, 10.0.3, 0.9.2.2)
rdoc (3.12.2, 3.12)
rspec (2.11.0)
rspec-core (2.13.1, 2.11.1)
rspec-expectations (2.13.0, 2.11.3)
rspec-mocks (2.13.0, 2.11.3)
rspec-rails (2.13.0, 2.11.0)
ruby_parser (3.1.2, 2.3.1)
rubygems-bundler (1.1.1)
russian (0.6.0)
rvm (1.11.3.6)
sass (3.2.7, 3.2.1)
sass-rails (3.2.6, 3.2.5)
sexp_processor (4.2.0, 3.2.0)
sprockets (2.2.2, 2.1.3)
sqlite3 (1.3.7, 1.3.6)
stamp (0.5.0, 0.2.0)
subexec (0.2.2)
thor (0.18.0, 0.17.0, 0.16.0)
tilt (1.3.6, 1.3.5, 1.3.3)
treetop (1.4.12, 1.4.10)
tzinfo (0.3.37, 0.3.33)
uglifier (1.3.0)
webrat (0.7.3)
will_paginate (3.0.4, 3.0.3)
++++++++++++++++++++++++++++++++++

Ruby -v
++++++++++++++
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-linux]
+++++++++++++++

Where I made a mistake? Help me, please!

rails generate model user_session

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

Session will lost sometimes with no reason even if you create it
successful.
So, go and use some other gems instead.

On Wed, Mar 27, 2013 at 6:14 PM, Denis R. [email protected]
wrote:

To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected]
To post to this group, send email to [email protected]
For more options, visit https://groups.google.com/groups/opt_out.


greatghoul http://www.g2w.me - Ask and Learn!

I am sorry(((
This Plugin work for RoR 3.0, but It is not work for RoR 3.2(((

http://railsplugins.org/plugins/56-authlogic?criterion_id=7&version_id=4419

Nothing can be done?

Thank You!
I shall try to use ‘devise’.

On 27 March 2013 10:14, Denis R. [email protected] wrote:

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

I think Devise is probably a better solution.

Colin

what is sorcery?

devise or sorcery, both good gems with different approaches.

devise has many more features
sorcery is more lightweight.

Worth investigating both.

On 27 March 2013 11:24, Denis R. [email protected] wrote:

what is sorcery?

You could google for
rails sorcery
to find out.

Colin

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs