December 2009
2 posts
1 tag
We Are Hiring!!!
Hey folks, to keep pace with our fast development, we are looking for a Software Architect Or Technical Manager. His/her objective is to design and ensure the compliance of our developments mainly based on Ruby on Rails technologies.
Above all, our preferred candidate will be flexible and highly motivated to work for a young and innovative startup, in one of the fastest growing industries aka...
1 tag
Rails 2+: Sanitize SQL string
Indeed it is sometimes useful to sanitize a query to avoid (most of) SQL injections.
Typically, this is the case with your favorite text search field on a website.
Obvisouly, you can’t do better than using the Rails standard way of querying, who automatically applies this mechanism. For instance:
MyModel.find(:all,:conditions => ['name LIKE ?','%'+params[:search]+'%'])
But what if you...