Displaying 1 result from an estimated 1 matches for "pnumber1234412341".
2005 Nov 23
15
:conditions => ... formatting
...@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 your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''pnumber1234412341) LIMIT 1'' at line 1: SELECT * FROM students WHERE (conditionspnumber like ":pnumber%"pnumber1234412341) LIMIT 1
which suggests that :pnumber is not being substituted, as per page
214 of "Agile web Development with Rails", even though it is in a
position where it woul...