What's new? | Help | Directory | Sign in
Google
ruby-roger-useful-functions
you got it
  
  
  
  
    
Search
for
Updated Yesterday (31 hours ago) by rogerpack2005
Labels: Featured
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!


Comment by rogerpack2005, Apr 16, 2008

has comments in the file


Sign in to add a comment