diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-04-25 18:30:21 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-04-25 18:30:21 +0530 |
commit | 8189536aeb91394ccc649b9c14f0cf15c25b9423 (patch) | |
tree | 4615bc45fa0bb5bf2fb189c8da3adc98e79eef9d | |
parent | 9e962ffd9adad16d7255fc1f37a9b3cfeecbaa9a (diff) | |
download | rails-8189536aeb91394ccc649b9c14f0cf15c25b9423.tar.gz rails-8189536aeb91394ccc649b9c14f0cf15c25b9423.tar.bz2 rails-8189536aeb91394ccc649b9c14f0cf15c25b9423.zip |
copy edits [ci skip]
-rw-r--r-- | guides/source/active_record_querying.textile | 2 | ||||
-rw-r--r-- | guides/source/generators.textile | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/active_record_querying.textile b/guides/source/active_record_querying.textile index 34ff2b2714..98937266ba 100644 --- a/guides/source/active_record_querying.textile +++ b/guides/source/active_record_querying.textile @@ -388,7 +388,7 @@ The field name can also be a string: Client.where('locked' => true) </ruby> -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 diff --git a/guides/source/generators.textile b/guides/source/generators.textile index ec5f53870e..e9d713d91d 100644 --- a/guides/source/generators.textile +++ b/guides/source/generators.textile @@ -467,7 +467,7 @@ h4. +gsub_file+ Replaces text inside a file. <ruby> - 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' </ruby 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. |