Merge pull request #646 from solopaulo/master

documentation typo fixes

Andrew Cantino 9 years ago
parent
commit
627fcd7547
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/models/agents/website_agent.rb
  2. 1 1
      app/views/devise/registrations/new.html.erb

+ 1 - 1
app/models/agents/website_agent.rb

@@ -29,7 +29,7 @@ module Agents
29 29
             "body_text": { "css": "div.main", "value": ".//text()" }
30 30
           }
31 31
 
32
-      "@_attr_" is the XPath expression to extract the value of an attribute named _attr_ from a node, and ".//text()" is to extract all the enclosed texts.  You can also use [XPath functions](http://www.w3.org/TR/xpath/#section-String-Functions) like `normalize-space` to strip and squeeze whitespace, `substring-after` to extract part of a text, and `translate` to remove comma from a formatted number, etc.  Note that these functions take a string, not a node set, so what you may think would be written as `normalize-text(.//text())` should actually be `normalize-text(.)`.
32
+      "@_attr_" is the XPath expression to extract the value of an attribute named _attr_ from a node, and ".//text()" is to extract all the enclosed texts.  You can also use [XPath functions](http://www.w3.org/TR/xpath/#section-String-Functions) like `normalize-space` to strip and squeeze whitespace, `substring-after` to extract part of a text, and `translate` to remove comma from a formatted number, etc.  Note that these functions take a string, not a node set, so what you may think would be written as `normalize-space(.//text())` should actually be `normalize-space(.)`.
33 33
 
34 34
       When parsing JSON, these sub-hashes specify [JSONPaths](http://goessner.net/articles/JsonPath/) to the values that you care about.  For example:
35 35
 

+ 1 - 1
app/views/devise/registrations/new.html.erb

@@ -19,7 +19,7 @@
19 19
 
20 20
               <li>Run the following commands:<br />
21 21
                 <%= content_tag :pre do -%>
22
-heroku git:clone <%= content_tag :var, app_name %>
22
+heroku git:clone --app <%= content_tag :var, app_name %>
23 23
 cd <%= content_tag :var, app_name %>
24 24
 bundle
25 25
 bin/setup_heroku