|
|
SqlAsEnglish
SQL as English instructions
Introduction
This is a rails plugins allowing you to have nice, easy to read condition statements.
Ex:
School.first_where 'name starts with' => 'George' People.all_where 'id in' => [35,36,37] People.all_where 'name doesnt include' => ['fred']
Also allows for things like case sensitivity, etc. People.all_where 'name iincludes' => ['george', 'park']
It is very addictive!
Details
Get it from svn in the rails dir. http://code.google.com/p/ruby-roger-useful-functions/source/browse/trunk/rails/english_like_queries.rb require that file from config/environment.rb Enjoy!
Sign in to add a comment

has comments in the file