postgresql - Rails 3.1 - escaping user's input -



postgresql - Rails 3.1 - escaping user's input -

good day everyone!

how can escape string of user's input search form which'll utilize in sql query? in controller.

for example, this:

time 10:15 pm.

should this:

time 10\:15 pm.

note: search in db (postgresql) gem (texticle).

erb::util.html_escape give total explanation :)

ruby-on-rails-3 postgresql ruby-on-rails-3.1 escaping

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -