[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