[Rails] Re: Authlogic Rails 3

2013-03-27 Thread Denis Rogov
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:

[Rails] Re: Authlogic Rails 3

2013-03-27 Thread Denis Rogov
I am sorry((( This Plugin work for RoR 3.0, but It is not work for RoR 3.2((( Nothing can be done? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop

Re: [Rails] Re: Authlogic Rails 3

2013-03-27 Thread greatghoul
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 Rogov li...@ruby-forum.com wrote: I am sorry((( This Plugin work for RoR 3.0, but It is not work for RoR 3.2((( Nothing can be done? --

Re: [Rails] Re: Authlogic Rails 3

2013-03-27 Thread Colin Law
On 27 March 2013 10:14, Denis Rogov li...@ruby-forum.com 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 -- You received this message because you are subscribed to the Google Groups

[Rails] Re: Authlogic Rails 3

2013-03-27 Thread Denis Rogov
Thank You! I shall try to use 'devise'. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [Rails] Re: Authlogic Rails 3

2013-03-27 Thread Jeffrey Jones
devise or sorcery, both good gems with different approaches. devise has many more features sorcery is more lightweight. Worth investigating both. On 27/03/13 19:23, Denis Rogov wrote: Thank You! I shall try to use 'devise'. -- You received this message because you are subscribed to the

[Rails] Re: Authlogic Rails 3

2013-03-27 Thread Denis Rogov
what is sorcery? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com.

Re: [Rails] Re: Authlogic Rails 3

2013-03-27 Thread Colin Law
On 27 March 2013 11:24, Denis Rogov li...@ruby-forum.com wrote: what is sorcery? You could google for rails sorcery to find out. Colin -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To

[Rails] Re: Authlogic Rails 3

2012-12-26 Thread Raj Kiran Bhogaraju
rails generate model user_session This works fine for generating sessions in Authlogic for Rails 3 and above versions. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group,

[Rails] Re: Authlogic Rails 3

2012-11-20 Thread Daniel Sanchez
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

[Rails] Re: Authlogic saves users with blank password.

2011-09-18 Thread Romain 'Maz' BILLOIR
Ok, just fixed the issue: in my model the right syntax was attr_accessible, everything works fine now. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe

[Rails] Re: Authlogic: rendering the login form as a partial on every page of my site

2011-09-03 Thread suruen
mattyh88 mathew.hucks@... writes: thanks! works like a charm :) On 17 okt, 01:41, David Kahn d...@... wrote: On Sat, Oct 16, 2010 at 8:33 AM, mattyh88 mathew.hu...@... wrote: Hi, I'm trying to setup the Authlogic gem. I've followed this tutorial: (because I'm using Rails 3)

[Rails] Re: Authlogic: Trying to login in my Cucumber test - Authlogic::Session::Activation::NotActivatedError

2011-06-16 Thread daze
Thanks, but I'm not using Devise; I'm using Authlogic, so I get the error, undefined method 'confirm!' There must be a straight-forward way to do this with Authlogic... On Jun 16, 12:27 am, Andrew Skegg andrewsk...@me.com wrote: daze dmonopoly10@... writes: In a Cucumber step definition,

[Rails] Re: Authlogic: Trying to login in my Cucumber test - Authlogic::Session::Activation::NotActivatedError

2011-06-15 Thread Andrew Skegg
daze dmonopoly10@... writes: In a Cucumber step definition, I'm trying to login, but I keep getting this error: You must activate the Authlogic::Session::Base.controller with a controller object before creating objects (Authlogic::Session::Activation::NotActivatedError) Are you using

[Rails] Re: Authlogic not active

2011-05-15 Thread Collin Donahue-Oponski
fyi for people who find this thread: I had the same issue with undefined method `underscore', and my only solution was recreating my app from scratch, using this authlogic/rails3 template: https://github.com/davidchua/authlogic-rails3-template -- Posted via http://www.ruby-forum.com/. --

[Rails] Re: Authlogic Rails 3

2010-12-23 Thread Up 4.
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 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails:

[Rails] Re: Authlogic with Rails3 where to start?

2010-11-28 Thread Ray Parker
+1 -- was with AL and now use Devise for what I do. On Nov 28, 10:37 am, Vladimir Rybas vladimirry...@gmail.com wrote:  Which do you suggest? Devise is ok for Rails 3. Watch screencasts:http://railscasts.com/episodes?search=devise On Sun, Nov 28, 2010 at 4:20 PM, Gerő Zoltán

[Rails] Re: Authlogic and rails 3 : NameError in User sessionsController#new

2010-11-15 Thread Frederick Cheung
On Nov 14, 11:13 pm, Romain Biard romain.bi...@gmail.com wrote: Hi everybody, I've installed Authlogic on Rails 3 following the Railscast (http:// railscasts.com/episodes/160-authlogic), and the resources I was able to find on the web, but I'm facing a problem. Once I've generated the

[Rails] Re: Authlogic and rails 3 : NameError in User sessionsController#new

2010-11-15 Thread Romain Biard
Thx Fidel, I'll have a look at this tutorial. Romain On 15 nov, 11:39, Fidel Viegas fidel.vie...@gmail.com wrote: On 11/15/10, Romain Biard romain.bi...@gmail.com wrote: Hi everybody, I've installed Authlogic on Rails 3 following the Railscast (http://

[Rails] Re: Authlogic and rails 3 : NameError in User sessionsController#new

2010-11-15 Thread Romain Biard
Yes it is, but in my setup it is user_sessions.rb with an s. It seems to me (but I'm a RoR newbie) that controller files should have an s... Can you tell me more on that ? Thx Romain On 15 nov, 13:18, Frederick Cheung frederick.che...@gmail.com wrote: On Nov 14, 11:13 pm, Romain Biard

[Rails] Re: Authlogic and rails 3 : NameError in User sessionsController#new

2010-11-15 Thread Marnen Laibow-Koser
Romain B. wrote in post #961546: Yes it is, but in my setup it is user_sessions.rb with an s. It seems to me (but I'm a RoR newbie) that controller files should have an s... They should. But this is a model, not a controller. Can you tell me more on that ? Thx Romain Best, -- Marnen

[Rails] Re: Authlogic not active

2010-10-30 Thread Philrup
Unfortunately the problem does not appear to be a routes problem but a ‘not initialised’ authlogic problem. By changing the App.Controller methods I have now moved the problem to the create procedure after logging on. I managed to create a user from the console and Authlogic filled in all the

[Rails] Re: Authlogic + Rails3 - undefined method `Login' for nil:NilClass

2010-10-21 Thread Sriram Chandrasekaran
You have something missing or wrong in routes.rb. I am not into Rails 3 routing yet so not sure what. Have a look at the Rails Guide on routing at http://guides.rubyonrails.org/ Thanks Colin! Yes, I did a bit of searching online, after you suggested I take a look at routes.rb. It seems

[Rails] Re: Authlogic: rendering the login form as a partial on every page of my site

2010-10-17 Thread mattyh88
thanks! works like a charm :) On 17 okt, 01:41, David Kahn d...@structuralartistry.com wrote: On Sat, Oct 16, 2010 at 8:33 AM, mattyh88 mathew.hu...@gmail.com wrote: Hi, I'm trying to setup the Authlogic gem. I've followed this tutorial: (because I'm using Rails 3)

[Rails] Re: Authlogic user login and register new user side-by-side

2010-09-04 Thread Fernando Perez
and then rendering a partial of the login form on the 'new' action of users. Am I in the right direction? Yes, simply render a partial for registration on login page or vice-versa. See this example: http://suivauto.com/login -- Posted via http://www.ruby-forum.com/. -- You received this

[Rails] Re: Authlogic: activating inactive account/user

2010-08-26 Thread IAmNan
Did you try resetting failed_login_count to 0? d. On Aug 26, 11:30 am, pepe p...@betterrpg.com wrote: Hello, I have searched high and low on how to activate an inactive account in Authlogic and I can't seem to figure it out. I am using consecutive_failed_logins_limit to control a brute

[Rails] Re: Authlogic: activating inactive account/user

2010-08-26 Thread pepe
Yep, among other things. What I have gathered so far (although I could be wrong) is that Authlogic validations happen for UserSession before anything else. I believe that authlogic then goes and grabs info from the session and does its thing (which I don't know yet what it is) and marks the user

[Rails] Re: Authlogic: activating inactive account/user

2010-08-26 Thread pepe
Yep, among other things. What I have gathered so far (although I could be wrong) is that Authlogic validations happen for UserSession before anything else. I believe that authlogic then goes and grabs info from the session and does its thing (which I don't know yet what it is) and marks the user

[Rails] Re: Authlogic: activating inactive account/user

2010-08-26 Thread IAmNan
That's how it's done in brute_force_protection.rb: def reset_failed_login_count attempted_record.failed_login_count = 0 end You could test your assumption by resetting the count and then clearing the browser cache or trying to log on from a different computer. If

[Rails] Re: authlogic and controllers - plus general advice

2010-08-05 Thread bingo bob
Also, Protected versus Private at the end there... What's the difference, and in this case should I be doing either, none or one or the other? http://pastie.org/1076947 bb -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google

[Rails] Re: authlogic and controllers - plus general advice

2010-08-05 Thread bingo bob
If I can ask a more direct question. How do I secure my controller so only baby name owners can access their baby names? Am I on the right lines? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group.

Re: [Rails] Re: authlogic and controllers - plus general advice

2010-08-05 Thread Colin Law
On 5 August 2010 13:44, bingo bob li...@ruby-forum.com wrote: If I can ask a more direct question. How do I secure my controller so only baby name owners can access their baby names? Am I on the right lines? I have not looked at your code but assuming that User has_many :baby_names then only

[Rails] Re: authlogic and controlling the resources users can access

2010-08-02 Thread bingo bob
Is this approach sound? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Re: Authlogic admin user functionality

2010-07-15 Thread Sachin
Thanks Colin, In the mean i tried a bit and wrote a method named admin_user referring to the current_user method in application controller. def current_user return @current_user_session if defined?(@current_user) @current_user = current_user_session current_user_session.record end def

[Rails] Re: Authlogic on Rails 3 with Checkbox

2010-06-03 Thread Siva Kilaru
Ivan Nastyukhin wrote: % form_for @user do |f| % %= f.check_box :field_name_at_model(db) % % end % Hi Ivan, I didnt understand what you replied. I was unable to save the checkbox value to a database for an authentication through authlogic plugin on rails 3. Can you help me out in this.

[Rails] Re: Authlogic Perishable token

2010-05-29 Thread Stanislav Orlenko
I've found: class User ActiveRecord::Base acts_as_authentic do |c| c.transition_from_restful_authentication = true end end topic is closed -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

Re: [Rails] Re: Authlogic Rails 3

2010-02-20 Thread straightfl...@gmail.com
For those who are struggling after backtracking and debugging the code, i had no choice but to put this in an initializer in the app Authlogic::Session::Base.controller = 'UserSession' not sure why this is necessary but it looks like the controller variable was not making it through to be set

[Rails] Re: Authlogic Rails 3

2010-02-19 Thread RaW
I think $ script/generate has been replaced with $ r g in Rails3 Am I right? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send

Re: [Rails] Re: Authlogic Rails 3

2010-02-19 Thread Conrad Taylor
On Fri, Feb 19, 2010 at 1:08 AM, RaW ra...@wrzochol.net wrote: I think $ script/generate has been replaced with $ r g in Rails3 Am I right? You'll need to do the following in Rails 3: rails g model user_session Then just edit the file and you should be good to go. Good luck, -Conrad

Re: [Rails] Re: Authlogic Rails 3

2010-02-19 Thread straightfl...@gmail.com
I am now getting an error irb(main):002:0 u = UserSession.find(1) NameError: uninitialized constant AuthLogic $ grep authlogic Gemfile gem authlogic, :git = git://github.com/binarylogic/authlogic.git $ bundle check The Gemfile's dependencies are satisfied For some reason bundle pack doesnt pack

[Rails] Re: Authlogic Rails 3

2010-02-18 Thread Brian Pokosh
Just skip to bundle install On Feb 18, 11:02 pm, straightfl...@gmail.com straightfl...@gmail.com wrote: thanks conrad, getting closer.  now i see the error $ bundle check Could not find gem 'authlogic (= 0, runtime)' in git://github.com/binarylogic/authlogic.git (at master). Source does not

Re: [Rails] Re: Authlogic Rails 3

2010-02-18 Thread straightfl...@gmail.com
thanks getting closer, but same error as originally. $ grep authlogic Gemfile gem authlogic, :git = git://github.com/binarylogic/authlogic.git quadro:~/$ bundle check The Gemfile's dependencies are satisfied quadro:~/$ rails g session user_session Could not find generator session. On Thu, Feb

[Rails] Re: Authlogic Rails 3

2010-02-18 Thread Brian Pokosh
I don't think the generator works in rails3. Just create the file yourself: class UserSession Authlogic::Session::Base end On Feb 18, 11:16 pm, straightfl...@gmail.com straightfl...@gmail.com wrote: thanks getting closer, but same error as originally. $ grep authlogic Gemfile gem authlogic,

[Rails] Re: authlogic

2010-01-29 Thread Tom Mac
Hi I partially succeeded in this .But there is also a problem What I did is just add a :active boolean column to users table . Now I can save company ( so user also) without session maintenece. But my requirement is after this just redirect to login page and from there login to pplication by

Re: [Rails] Re: authlogic

2010-01-29 Thread Craig White
On Fri, 2010-01-29 at 10:44 +0100, Tom Mac wrote: Hi I partially succeeded in this .But there is also a problem What I did is just add a :active boolean column to users table . Now I can save company ( so user also) without session maintenece. But my requirement is after this just

[Rails] Re: authlogic

2010-01-28 Thread Tom Mac
Hi I could not solve the problem yet.Please help Thanks Tom -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To

[Rails] Re: Authlogic and Sessions

2010-01-22 Thread Ugis Ozols
Hello. Try adding this line to config/environment.rb in config block: config.action_controller.session_store = :active_record_store -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to

Re: [Rails] Re: Authlogic and Sessions

2010-01-22 Thread Craig White
On Thu, 2010-01-21 at 23:51 -0800, Ugis Ozols wrote: Hello. Try adding this line to config/environment.rb in config block: config.action_controller.session_store = :active_record_store yes, this was needed. I think I expected that this was going to be added automatically when I ran

Re: [Rails] Re: Authlogic and Sessions

2010-01-22 Thread Craig White
On Fri, 2010-01-22 at 05:44 -0700, Craig White wrote: On Thu, 2010-01-21 at 23:51 -0800, Ugis Ozols wrote: Hello. Try adding this line to config/environment.rb in config block: config.action_controller.session_store = :active_record_store yes, this was needed. I think I

[Rails] Re: AuthLogic login page: undefined method `login' and `pas

2010-01-11 Thread Marnen Laibow-Koser
John Woods wrote: For the record, I believe I have discovered the problem. Authlogic absolutely requires that there be a login field of some sort in the User model -- even if you don't actually use it for logging in. No. Authlogic is smart enough to use email if login doesn't exist.

[Rails] Re: AuthLogic login page: undefined method `login' and `password'

2010-01-10 Thread John Woods
Hi Lee, and thanks so much for your reply. I checked over my routes, and I think I have resolved a few issues that might have been preventing the login page from working correctly -- but alas, not all of them. I'm still getting exactly the same problems when serving the login page. One issue is

[Rails] Re: AuthLogic login page: undefined method `login' and `password'

2010-01-10 Thread John Woods
For the record, I believe I have discovered the problem. Authlogic absolutely requires that there be a login field of some sort in the User model -- even if you don't actually use it for logging in. It also needs to contain some unique value, presumably, or there will be validation problems. I

[Rails] Re: AuthLogic login page: undefined method `login' and `password'

2010-01-09 Thread Lee Smith
Check your routes to make sure you've configured the login correctly: rake routes -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send

[Rails] Re: AuthLogic Question - one time password (persistence_token) - what config is required to use this???

2009-12-03 Thread Greg Hauptmann
Actually I meant to say one-time password (not persistence) token. I'll have a look at the links. Can I ask something basic for authlogic...what is actually required in ones's normal controllers and model to ensure auhentication/login has taken place? Is acts_as_authentic just for the User

[Rails] Re: AuthLogic Question - one time password (persistence_token) - what config is required to use this???

2009-12-02 Thread David
The persistence token is stored in the session. It is what authlogic uses to keep track of whether you are logged in. If you have authlogic working, log your session data and you should see a user_credentials entry there. I think what you are looking for is the perishable_token. Here is a good

[Rails] Re: Authlogic with nifty_authentication, why use both?

2009-11-17 Thread lardawge
Nifty_authentication is a generator to generate the files needed to use authlogic in a rails app. Not to be confused with what the gem does. It takes the place of building the User, session and adds some helper methods. Run script/generate nifty_authentication --help to see what it does. On Nov

[Rails] Re: Authlogic and Restful Authentication - Security Issues

2009-11-15 Thread Katherine
I am aware of some authlogic issue with Passenger (destoying sessions often yield an error). But I think it can be fixed easily as long as your production server is a VPS. I told them I'm going to throw an in-depth review of your review and got an unusual response. I think this is the case

[Rails] Re: Authlogic and Restful Authentication - Security Issues

2009-11-15 Thread Eric
Just out of curiosity, by certain developers are you referring only to developers that you work with? Is some manager, your manager? Because if that's the case, they should be able (and I'd say have a duty) to explain. Do you have any examples otherwise? For what its worth, your question is the

[Rails] Re: Authlogic and Restful Authentication - Security Issues

2009-11-15 Thread Rick
There was a problem with reset_session in production mode from rails 2.3.1. Reported as resolved with discussion as recent as 3Nov. On Nov 15, 9:56 pm, Eric ericgh...@gmail.com wrote: Just out of curiosity, by certain developers are you referring only to developers that you work with? Is some

[Rails] Re: authlogic fails on existing accounts when crypted_password is blank

2009-11-14 Thread SeanWalberg
On Nov 13, 6:01 pm, Todd A. Jacobs tjacobs-sndr- b4f...@codegnome.org wrote: How can I get authlogic to either use the cleartext passwords, or to bulk-populate the crypted_password and password_salt fields for existing accounts? OTTOMH: User.find(:all).each do |user| user.password =

[Rails] Re: authlogic fails on existing accounts when crypted_password is blank

2009-11-14 Thread Conrad Taylor
On Fri, Nov 13, 2009 at 4:01 PM, Todd A. Jacobs tjacobs-sndr-b4f...@codegnome.org wrote: I recently ran a migration to add the following to an existing user model: t.string crypted_password t.string password_salt t.string persistence_token There is an existing (cleartext)

[Rails] Re: Authlogic and Restful Authentication - Security Issues

2009-11-11 Thread Leonardo Mateo
On Wed, Nov 11, 2009 at 4:25 AM, Katherine bridgeuto...@gmail.com wrote: Greetings. I need to know an expert's opinion on Authlogic and Restful Authentication as to security. I have used both and I personally like Authlogic precisely because it is more flexible. As to security I am not

[Rails] Re: Authlogic and Restful Authentication - Security Issues

2009-11-11 Thread Katherine
Thanks for your response. Security issue is something rather objective. I am still investigating why they say so (before I even ask or throw them that question). If there's no explanation on that opinions, then you cannot take them seriously. Security depends on the developer, and several

[Rails] Re: Authlogic and Restful Authentication - Security Issues

2009-11-11 Thread Marnen Laibow-Koser
Katherine wrote: [...] As to security I am not aware of any risk as long as the authlogic examples are followed. However I need to know why certain developers feel that using Authlogic imposes security risks. I've never heard this. It's like some manager tells you your application is

[Rails] Re: Authlogic Page View Authentication Help

2009-10-28 Thread about2flip
figured it out. On Oct 28, 6:02 pm, about2flip mnu...@gmail.com wrote: Hi: I am a newbie at ROR, and I am grasping my head around Authlogic. I am having hard time trying to figure out how can I do the following: in my application controller I have the following helpers:

[Rails] Re: Authlogic Password confirmation is too short Error. NEED

2009-10-27 Thread Marnen Laibow-Koser
about2flip wrote: Hi: I am using authlogic, and following railscast tutorial. I am running into this error code with the password confirmation. authlogic password confirmation is too short Has anyone experienced this error? I need your help. Thanks in advance for your help.

[Rails] Re: Authlogic Password confirmation is too short Error. NEED

2009-10-27 Thread about2flip
Hi: I read through the rdocs, and I saw the following: def require_password_confirmation(value = nil) rw_config(:require_password_confirmation, value, true) end def validates_length_of_password_field_options(value = nil) rw_config(:validates_length_of_password_field_options, value,

[Rails] Re: Authlogic Password confirmation is too short Error. NEED

2009-10-27 Thread Hassan Schroeder
On Tue, Oct 27, 2009 at 8:28 AM, about2flip mnu...@gmail.com wrote: It still tells me that my password confirmation is too short. Then that's probably because it's zero-length because you're not actually passing anything. Typo in login form, maybe? Have you put any debugging statements in

[Rails] Re: Authlogic Password confirmation is too short Error. NEED

2009-10-27 Thread Philip Hallstrom
On Oct 27, 2009, at 8:28 AM, about2flip wrote: Hi: I read through the rdocs, and I saw the following: def require_password_confirmation(value = nil) rw_config(:require_password_confirmation, value, true) end def validates_length_of_password_field_options(value = nil)

[Rails] Re: Authlogic Password confirmation is too short Error. NEED

2009-10-27 Thread about2flip
I don't require max 4. It is doing it automatically, which is why I am getting pissed off. I don't have anything set stating that max is 4. On Oct 27, 11:51 am, Philip Hallstrom phi...@pjkh.com wrote: On Oct 27, 2009, at 8:28 AM, about2flip wrote: Hi: I read through the rdocs, and I

[Rails] Re: Authlogic Password confirmation is too short Error. NEED

2009-10-27 Thread about2flip
I tried what you suggested, and now it's telling me that password is too short minimum 1. I am putting in 4,5,6 characters. I also put in this: merge_validates_confirmation_of_password_field_options What are the options, I don't see them in rdoc. Thanks. On Oct 27, 11:51 am, Philip Hallstrom

[Rails] Re: Authlogic Password confirmation is too short Error. NEED

2009-10-27 Thread Marnen Laibow-Koser
about2flip wrote: I don't require max 4. It is doing it automatically, which is why I am getting pissed off. I don't have anything set stating that max is 4. Right, because Authlogic sets sensible defaults. Just override them as outlined above if you don't like them. Nothing to get pissed

[Rails] Re: Authlogic Password confirmation is too short Error. NEED

2009-10-27 Thread Marnen Laibow-Koser
about2flip wrote: I tried what you suggested, and now it's telling me that password is too short minimum 1. I am putting in 4,5,6 characters. I also put in this: merge_validates_confirmation_of_password_field_options What are the options, I don't see them in rdoc. They're in the rdoc.

[Rails] Re: Authlogic Password confirmation is too short Error. NEED

2009-10-27 Thread about2flip
This is what I am seeing when I submit: Processing UsersController#create (for 127.0.0.1 at 2009-10-27 13:02:52) [POST] Parameters: {user={password_confirmation=1234, username=about2flip , password=1234, email=mnu...@gmail.com}, commit=Submit, authen

[Rails] Re: Authlogic Password confirmation is too short Error. NEED

2009-10-27 Thread about2flip
Would it be because of this line in my model: attr_accessible :username, :email, :password thanks On Oct 27, 12:37 pm, Marnen Laibow-Koser rails-mailing-l...@andreas- s.net wrote: about2flip wrote: I tried what you suggested, and now it's telling me thatpasswordis tooshortminimum 1. I am

[Rails] Re: Authlogic Password confirmation is too short Error. NEED

2009-10-27 Thread Frederick Cheung
On 27 Oct 2009, at 17:13, about2flip wrote: Would it be because of this line in my model: attr_accessible :username, :email, :password yes - this means that User.create(params[:user]) won't set username, email or password. Fred thanks On Oct 27, 12:37 pm, Marnen Laibow-Koser

[Rails] Re: Authlogic Password confirmation is too short Error. NEED

2009-10-27 Thread about2flip
Well I think I fixed it because I see my data saved to the DB table. I just added this: attr_accessible :username, :email, :password, :password_confirmation but I got a controller error: undefined local variable or method `root_url' for #UsersController: 0x477b998 will try to figure out.

[Rails] Re: Authlogic Password confirmation is too short Error. NEED

2009-10-27 Thread Marnen Laibow-Koser
about2flip wrote: [...] What does this mean: WARNING: Can't mass-assign these protected attributes: thanks Read about AR::Base.attr_protected and .attr_accessible. I think Authlogic may make the password fields protected by default. On Oct 27, 12:37 pm, Marnen Laibow-Koser

[Rails] Re: Authlogic Password confirmation is too short Error. NEED

2009-10-27 Thread Frederick Cheung
On 27 Oct 2009, at 17:20, about2flip wrote: Well I think I fixed it because I see my data saved to the DB table. I just added this: attr_accessible :username, :email, :password, :password_confirmation Sorry I got things the wrong way round - attr_accessible means that

[Rails] Re: Authlogic -- gem or plugin?

2009-10-19 Thread Philip Hallstrom
Trying out Authlogic for the first time -- somewhere, can't find it now of course :-) I saw a recommendation to use the plugin form, but the Ryan Bates railscast recommends the gem (without explanation). I'm using it as a plugin and it's working fine for me...

[Rails] Re: Authlogic -- gem or plugin?

2009-10-19 Thread Freddy Andersen
I'm using the gem without issues... If you use the GEM you will get a gem version installed so that you can stay consistent between environments (dev, test, pre-prod, prod... ) Iif you want the latest and greatest you need to use the plugin..

[Rails] Re: Authlogic -- gem or plugin?

2009-10-19 Thread Aaron Broad
The argument for the gem is that any improvements in security/bug fixes will be automatically included in your application if you continue to update your gems. The argument for the plugin is any changes in the gem won't break your code that was already working if you don't update your plugin. I

[Rails] Re: Authlogic -- gem or plugin?

2009-10-19 Thread Robert Walker
Hassan Schroeder wrote: Trying out Authlogic for the first time -- somewhere, can't find it now of course :-) I saw a recommendation to use the plugin form, but the Ryan Bates railscast recommends the gem (without explanation). Comments or recommendations? I believe that Ryan tends to

[Rails] Re: Authlogic -- gem or plugin?

2009-10-19 Thread sax
I've had projects break before when I've updated plugins (my own and others'). It's a little more clear what version of a gem you have installed versus a plugin, which may or may not be the most recent revision. On Oct 19, 10:54 am, Robert Walker rails-mailing-l...@andreas-s.net wrote: Hassan

[Rails] Re: Authlogic -- gem or plugin?

2009-10-19 Thread Conrad Taylor
On Mon, Oct 19, 2009 at 10:51 AM, Aaron Broad aaron.br...@gmail.com wrote: The argument for the gem is that any improvements in security/bug fixes will be automatically included in your application if you continue to update your gems. The argument for the plugin is any changes in the gem

[Rails] Re: Authlogic - Render Partial

2009-09-25 Thread pabcas
Try % form_for UserSession.new ... if you want the form to work anywhere, or make sure that @user_session is set in the controller, eg. @user_session = UserSession.new Paul On Sep 25, 6:54 am, bui bui...@gmail.com wrote: The controller is the home controller and looks like this (very basic):

[Rails] Re: Authlogic - Render Partial

2009-09-25 Thread bui
pabcas - Thanks for responding to my question. I really appreciate the help. Changing my partial to use UserSession.new seemed to work. The home page was able to render properly. I checked the user_sessions_controller.rb file and I have this method defined. def new @user_session =

[Rails] Re: Authlogic - Render Partial

2009-09-25 Thread bui
Paul - Just an update. Although changing the partial as you suggested allowed the home page to render properly, I think it also kept Authlogic from working properly. When the partial contains this: % form_for UserSession.new :url = user_session_path do |f| % I get nothing from Authlogic when I

[Rails] Re: Authlogic - Render Partial

2009-09-24 Thread pharrington
On Sep 24, 3:06 pm, bui bui...@gmail.com wrote: New to Rails.  Using Authlogic for authentication and went through tutorial at github.  Having a bit of a problem getting the login screen to render as a partial from a different view file. I have a index.html.erb view file for the home

[Rails] Re: Authlogic - Render Partial

2009-09-24 Thread bui
The controller is the home controller and looks like this (very basic): class HomeController ApplicationController def index end end The view for the home controller is is just a basic home page and I just wanted to render a login partial there since I'm also planning to use it elsewhere

[Rails] Re: Authlogic administration

2009-09-23 Thread Marnen Laibow-Koser
the batman wrote: Whats the best way to use administration with authlogic? I have a single admin role and a limited users role. The admin section is namespaced. Is using a plugin like lockdown or declarative_authorization a good idea or overkill for only having 2 seperate roles?

[Rails] Re: [Authlogic]

2009-09-21 Thread Colin Law
2009/9/20 Yorick yor...@gmail.com: I forgot to mention; this is on Ruby 1.9.1 with Rails 2.3.4, the error is not appearing on my Windows devbox with Ruby 1.8 and Rails 2.3.3, which is making it rather odd. Downgrading Authlogic does not prove to be a solution either, so it's likely unrelated.

[Rails] Re: [Authlogic]

2009-09-20 Thread Yorick
I forgot to mention; this is on Ruby 1.9.1 with Rails 2.3.4, the error is not appearing on my Windows devbox with Ruby 1.8 and Rails 2.3.3, which is making it rather odd. Downgrading Authlogic does not prove to be a solution either, so it's likely unrelated. I also note that I forgot to add a

[Rails] Re: Authlogic Forgot Password

2009-08-24 Thread Abhishek shukla
http://www.binarylogic.com/2008/11/16/tutorial-reset-passwords-with-authlogic/ this might help u regards abhis On Mon, Aug 24, 2009 at 9:14 AM, tispratik tispra...@gmail.com wrote: Hi, Has anyone implemented the Authlogic forgot password stuff? Please let us know how to, if anyone has or

[Rails] Re: Authlogic Forgot Password

2009-08-24 Thread Eric
Apropos to this, it's good to at least attempt to plug your subject line into Google. On Aug 24, 2:36 am, Abhishek shukla bettera...@gmail.com wrote: http://www.binarylogic.com/2008/11/16/tutorial-reset-passwords-with-a... this might help u regards abhis On Mon, Aug 24, 2009 at 9:14 AM,

[Rails] Re: Authlogic Administration

2009-08-22 Thread louposk
Hi guys! Thank u all for your answers. I will check them out! Probably i will use acl9 cause i want to use some simple authotization. Thanx for your time!! Best Kostas On Aug 20, 6:57 pm, Fifigyuri fifigy...@gmail.com wrote: Hi, I just set up acl9. It is very simple to set up, the syntax is

[Rails] Re: Authlogic Administration

2009-08-20 Thread Fifigyuri
Hi, I just set up acl9. It is very simple to set up, the syntax is simple and nice. It depends how complex authorisation you want to use. I found Acl9 to be refered as authorisation for simple cases... but as I found it is possible to cover quite nice set of needs. bw, Gyuri On Aug 18, 7:02 pm,

[Rails] Re: Authlogic Administration

2009-08-18 Thread Marnen Laibow-Koser
Kostas Lps wrote: Hi guys, i've created user authentication using Authlogic and it works like a charm!! But how can i use authlogic to authorize my administrator so that he can se a diffenent menu? You might like to use something like rails_authorization. Best, -- Marnen Laibow-Koser

[Rails] Re: Authlogic Administration

2009-08-18 Thread louposk
Hi Marmen, and thanx for the fast response! You say that i cant do admin authorize with Authlogic or is it better to use rails_authorization instead Authlogic?? i have just inserted Authlogic to my app and i dont want to change it again. Thanx again On Aug 18, 8:13 pm, Marnen Laibow-Koser

[Rails] Re: Authlogic Administration

2009-08-18 Thread Marnen Laibow-Koser
Kostas Lps wrote: Hi Marmen, and thanx for the fast response! You say that i cant do admin authorize with Authlogic or is it better to use rails_authorization instead Authlogic?? I'm saying that you probably want to use both. Authlogic takes care of *authentication*, while

  1   2   >