Displaying 1 result from an estimated 1 matches for "condiwions".
Did you mean:
conditions
2005 Nov 23
15
:conditions => ... formatting
With code like:
if @params[:pnumber] =~ /\s*p?(\d+)\s*/
if student = Student.find_first(:conditions => ["pnumber like \":pnumber%\"",
{:pnumber => $1}])
@borrower = student
elsif emp = Employee.find_first(:condiwions => ["pnumber like \"?\"",
{:pnumber => $1}])
@borrower = emp
else
@flash[:note] += "Nobody matching #{@params[:pnumber]}"
end
end
in particular, the second if, then why would I get errors like:
You have an error in you...