Created
August 29, 2011 02:36
-
-
Save kirkbushell/1177650 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conditions = {} | |
conditions[:title.matches] = '%'+@search_value+'%' | |
conditions[:description.matches] = '%'+@search_value+'%' | |
conditions[:status] = params[:show] if params[:show] != 'all' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment