Skip to content

Instantly share code, notes, and snippets.

@ruprict
Created March 18, 2012 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruprict/2072695 to your computer and use it in GitHub Desktop.
Save ruprict/2072695 to your computer and use it in GitHub Desktop.
Kennedy Article on Rails Secuity
<?php
// ...
protected function build_params() {
$params = array();
foreach($_POST as $key => $value) {
$params[":$key"] = $value;
}
return $params;
}
// ...
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment