Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

copy edits [ci skip]

  • Loading branch information...
commit 8189536aeb91394ccc649b9c14f0cf15c25b9423 1 parent 9e962ff
@vijaydev vijaydev authored
2  guides/source/active_record_querying.textile
@@ -388,7 +388,7 @@ The field name can also be a string:
Client.where('locked' => true)
-NOTE: A +Symbol+ value is not supported and should not be used. Always use a +String+ instead: +Client.where(:status => 'active')+, but NOT +Client.where(:status => :active)+.
+NOTE: The values cannot be symbols. For example, you cannot do +Client.where(:status => :active)+.
h5(#hash-range_conditions). Range Conditions
2  guides/source/generators.textile
@@ -467,7 +467,7 @@ h4. +gsub_file+
Replaces text inside a file.
- gsub_file 'name_of_file.rb', 'method.to_be_replaced', 'method.the_replacing_code'
+gsub_file 'name_of_file.rb', 'method.to_be_replaced', 'method.the_replacing_code'
Regular Expressions can be used to make this method more precise. You can also use append_file and prepend_file in the same way to place code at the beginning and end of a file respectively.
Please sign in to comment.
Something went wrong with that request. Please try again.