search for: p_email

Displaying 1 result from an estimated 1 matches for "p_email".

Did you mean: l_email
2006 Jan 12
1
A really newbie question
...match on either alias or email is found, or create a new record if no matches are found. But despite many tries it just doesn''t work. Did I set the accessor parameters correctly? Thanks. -- class User < ActiveRecord::Base attr_writer :alias, :email def self.newuser?(p_alias, p_email) user = find_first(["alias = ? OR email = ?", p_alias, p_email]) if user.nil? return true else return false end end def self.addupdate(p_alias, p_email) t_user = find_first(["alias = ? OR email = ?", p_alias, p_email]) if t_user.nil?...