I'm using a postgres database and have run into problems where
attributes on a model are not sanitised correctly before being saved.
The following code:
I'm using a postgres database and have run into problems where
attributes on a model are not sanitised correctly before being saved.
The following code:
Are you sure this is the relevant snippet - why would a save be doing
a select?
Fred
I'm not sure, it seems to be done by Rails.
The obivous way to do it is to delete your development.log file, open
up the console and whack in what you had before (and only that) and
see what's in the logs after.
I did that and it still does a select before doing an insert. Again
not sure why, but that is secondary to my question about the ' not
being sanitised in the attribute.
I'm using a postgres database and have run into problems where
attributes on a model are not sanitised correctly before being saved.
The following code: