Skip to content

Instantly share code, notes, and snippets.

@anklos
Created June 23, 2011 06:09
Show Gist options
  • Save anklos/1041999 to your computer and use it in GitHub Desktop.
Save anklos/1041999 to your computer and use it in GitHub Desktop.
safe sql condiiton
conditions = ["user.login = ? and user.password = ?", params[:login], params[:password]]
@user = find(:conditions => conditions)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment