Displaying 20 results from an estimated 100 matches similar to: "validates_confirmation_of won''t work"
2006 Jun 16
0
rake spec controller test output hideus.
Is there any way to change the output of rake spec fails?
The errors are just totally over the top ugly and not helpful. First
of all the ruby -Ilib line always comes before each test and I find it
distracting. But if an error occurs on something that is not nil it
just gives me the entire contents of that object and that is no small
matter when the object is a HTTP request response.
Here is
2006 Mar 23
4
Postgresql connection problems
Forgive me for asking a trivial question on this list, but being new
to Ruby/Ruby on Rails, I''m not sure where to start....
I''m trying to connect to a postgresql server:
My database.yml contains:
test_test:
adapter: postgresql
database: test_test
username: testuser
password: resutest
host: testpgserver
port: 5432
encoding: UTF8
min_messages: warning
The
2006 Jan 20
8
validates_confirmation_of not working
is there any special requirement for validates_confirmation_of ? I am
trying to make sure 2 passwords are equal (cleanly the rails way)..
In my view i have two fields with id user[password] and
user[password_confirmation].
in the model i have
validates_confirmation_of :password, :message =>"Passwords do not match "
Am i missing something here ?
thanks
adam
2005 Oct 14
7
validates_confirmation_of not working
Hello, I''m having a weird problem in my user model. For the
change_password method I have the following:
def change_password(oldpass, newpass, confirmation)
oldpass = self.class.myhash(oldpass)
reload
passhash = self.password
self.password = newpass
self.password_confirmation = confirmation
if valid? and oldpass == passhash
save!
else
# valid?
2006 Mar 14
4
validates_confirmation_of has stopped working
Hi Railers,
I''m past considering myself a noob in Rails land - I think what I''m up against
here is more of a bug or an anomaly that I''m unaware of (or that has changed
in a recent version).
I had a fully working validates_confirmation_of :email_address field in my app
- was one of the first things I set up, extremely simple, been working for a
long time.
Then one
2007 Oct 23
11
validates_confirmation_of not working?
I just can''t get validates_confirmation_of working for the life of
me!...
It''s not the first time I''m having problems with it but I just never
understand why!... This time I pretty much followed *exactly* the
example in Agile Rails Development and still...it just won''t work! I put
2 different passwords in the form and it doesn''t trigger an error,
2004 Nov 20
0
Stack level too deep on Cygwin and on Debian / Colinux with 0.5.0 - 0.8.5 Beta gems
Hi,
as it is not possible for me to use a sensible development environment
to start with I have to use emulations. I use Cygwin on windows and also
Colinux. (Colinux is really amazing cause it lets you run actual linux
binaries und Windows.) So here is my problem, which by the way exists
since Rails 0.5.0 I think. It was the reason I tried Colinux in the
first place, cause the error first
2009 Jul 09
0
Hanging ssh sessions with openssh-5.1p1 and Solaris 8 & 10
Hi,
Has anyone had any luck looking into this by any chance ?
> On Mon, Aug 04, 2008 at 02:34:23PM -0400, Jeff Wieland wrote:
>> Since we upgraded OpenSSH from 5.0p1 to 5.1p1 on our Solaris 8 boxes
>> (I know, I know, we should upgrade or retire them...), we've started
>> experiencing problems with slogin'ing into these boxes, running vi,
>> and pasting text
2007 Oct 24
8
validates_confirmation_of not working
Hello to everyone,
Well, very frustrated with this one because I am following the example
straight from the documentation and it is not working.
First when I try:
validates_confirmation_of :password, :on => :password_update
(password_update is a def in my User model which works fine without
this validation in please)
I get the following error:
TypeError in UsersController#update_password
2006 May 19
1
Problems generating a model with a namespace
I''m runnig Rails 1.1.2 and I''m trying to use a namespace with my model
class such as Namespace::Test so I run:
script/generate model namespace/test
create app/models/namespace
create test/unit/namespace
create test/fixtures/namespace
create app/models/namespace/test.rb
create test/unit/namespace/test_test.rb
create
2007 Oct 12
1
database configuration specifies nonexistent postgresql adapter
Hi
I am trying to get RoR to work with Postgresql 8,2.5 (latest stable
version)
Steps taken
1. Download Postgresql 1.82 and installed successfully
2. Edited my Database.yml
development:
adapter: postgresql
database: test_development
username: postgres
password: xxx
host: localhost
test:
adapter: postgresql
database: test_test
username: postgres
password: xxx
host: localhost
2012 Jul 02
0
[klibc:master] [VAR] Sanitise environment variable names on entry
Commit-ID: 61d300672e0c1877482deed0f745b52ef306c7d3
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=61d300672e0c1877482deed0f745b52ef306c7d3
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Sat, 25 Feb 2012 15:35:18 +0800
Committer: maximilian attems <max at stro.at>
CommitDate: Mon, 2 Jul 2012 10:47:34 +0200
[klibc] [VAR] Sanitise environment
2019 Aug 12
1
ALTREP package interaction with testthat
Hi
I found a weird problem in testthat while working with an ALTREP package.
The package name is AltWrapper. My ALTREP serialize function is called even
when I'm trying to serialize a non-ALTREP object. Here is an example
```
context("altrep")
length_func<-function(x){
return(length(x))
}
setAltClass(className = "test", classType = "real")
2007 May 08
3
assert_difference eval magic in [6693]
I just saw Marcel''s change to assert_difference that changes the
method API to take a string param that is evaled in a lambda.
http://dev.rubyonrails.org/changeset/6693
I much preferred the old API, since it''s simple enough to pass a
lambda. Passing a string means the lambda is in the wrong scope and
doesn''t have access to objects in the test case scope.
For an
2006 Aug 16
6
modeling ''phony'' fields.
Hi,
I have a user model with an e-mail field. When a user registers for the
site, I want them to confirm their email address by typing it in again.
If they change their email address, I want them to confirm their email
address by typing it in again. However, the user might change things on
their account not related to their email address, such as their phone
number, and they should not have
2006 Aug 15
8
Ferret 0.10 series
Hi David,
>> Otherwise I''m fully committed to getting 0.10 out.
>> When it is out, I''d recommend getting it into your
>> development app as soon as you can.
Any idea of timeframe to a 0.10 alpha release?
Kind Regards
Neville
2006 Apr 26
1
Possible acts_as_authenticated bug (or rails)
The code that comes with the plugin uses a method that looks like this:
def password_required?
crypted_password.blank? or not password.blank?
end
with validations that look like this:
validates_presence_of :password, :if =>
:password_required?
validates_presence_of :password_confirmation, :if =>
:password_required?
validates_length_of
2006 Aug 14
3
validating required fields during an update?
I have a User model with an email attribute. I''m using the following
validations:
validates_confirmation_of :email
validates_format_of :email,
:with => RFC822::EmailAddress,
:message => "must be a valid address in the form user@domain.com"
validates_uniqueness_of :email, :message => "address has already
been taken. If you''ve forgotten your
2006 Jul 17
19
updating model
hello,
i am writing a simple user login system.
when registering a user account, i have two field:
password
password_confirmation
which are validated using
validates_presence_of
validates_confirmation_of
and these are then used to generate a password hash which is stored in
my database
when i want to update the record (without changing the password and
entering new values for password and
2006 Jan 20
3
Is there a way to validate a model w/o saving it?
I have some code in my controller which looks like this:
if request.post? and @account.save and @user.save
...
end
and in my Account and User models I have many :validates, like so
account.rb
validates_presence_of :subdomain, :on => :create
validates_uniqueness_of :subdomain, :on => :create, :message => "is
already being used"
validates_exclusion_of