Merge pull request #249 from shioyama/rails4

fix typo (name a variable, not :name a symbol) and change locale assignment to boolean