Skip to content
This repository
Browse code

s/ERb/ERB/g

The author of ERB sais, his eRuby implementation was originally named "ERb/ERbLight" and then renamed to "ERB" when started bundled as a Ruby standard lib.
http://www2a.biglobe.ne.jp/~seki/ruby/erb.html
  • Loading branch information...
commit bd3cdeea354ebff97b0d5102a0857ce85eedcfa4 1 parent c17b8e4
Akira Matsuda amatsuda authored
4 actionpack/lib/action_controller/base.rb
@@ -105,7 +105,7 @@ module ActionController
105 105 # == Renders
106 106 #
107 107 # Action Controller sends content to the user by using one of five rendering methods. The most versatile and common is the rendering
108   - # of a template. Included in the Action Pack is the Action View, which enables rendering of ERb templates. It's automatically configured.
  108 + # of a template. Included in the Action Pack is the Action View, which enables rendering of ERB templates. It's automatically configured.
109 109 # The controller passes objects to the view by assigning instance variables:
110 110 #
111 111 # def show
@@ -128,7 +128,7 @@ module ActionController
128 128 # end
129 129 # end
130 130 #
131   - # Read more about writing ERb and Builder templates in ActionView::Base.
  131 + # Read more about writing ERB and Builder templates in ActionView::Base.
132 132 #
133 133 # == Redirects
134 134 #
10 actionpack/lib/action_view/base.rb
@@ -8,13 +8,13 @@
8 8 module ActionView #:nodoc:
9 9 # = Action View Base
10 10 #
11   - # Action View templates can be written in three ways. If the template file has a <tt>.erb</tt> (or <tt>.rhtml</tt>) extension then it uses a mixture of ERb
  11 + # Action View templates can be written in three ways. If the template file has a <tt>.erb</tt> (or <tt>.rhtml</tt>) extension then it uses a mixture of ERB
12 12 # (included in Ruby) and HTML. If the template file has a <tt>.builder</tt> (or <tt>.rxml</tt>) extension then Jim Weirich's Builder::XmlMarkup library is used.
13 13 # If the template file has a <tt>.rjs</tt> extension then it will use ActionView::Helpers::PrototypeHelper::JavaScriptGenerator.
14 14 #
15   - # == ERb
  15 + # == ERB
16 16 #
17   - # You trigger ERb by using embeddings such as <% %>, <% -%>, and <%= %>. The <%= %> tag set is used when you want output. Consider the
  17 + # You trigger ERB by using embeddings such as <% %>, <% -%>, and <%= %>. The <%= %> tag set is used when you want output. Consider the
18 18 # following loop for names:
19 19 #
20 20 # <b>Names of all the people</b>
@@ -23,7 +23,7 @@ module ActionView #:nodoc:
23 23 # <% end %>
24 24 #
25 25 # The loop is setup in regular embedding tags <% %> and the name is written using the output embedding tag <%= %>. Note that this
26   - # is not just a usage suggestion. Regular output functions like print or puts won't work with ERb templates. So this would be wrong:
  26 + # is not just a usage suggestion. Regular output functions like print or puts won't work with ERB templates. So this would be wrong:
27 27 #
28 28 # <%# WRONG %>
29 29 # Hi, Mr. <% puts "Frodo" %>
@@ -81,7 +81,7 @@ module ActionView #:nodoc:
81 81 #
82 82 # == Builder
83 83 #
84   - # Builder templates are a more programmatic alternative to ERb. They are especially useful for generating XML content. An XmlMarkup object
  84 + # Builder templates are a more programmatic alternative to ERB. They are especially useful for generating XML content. An XmlMarkup object
85 85 # named +xml+ is automatically made available to templates with a <tt>.builder</tt> extension.
86 86 #
87 87 # Here are some basic examples:
2  actionpack/lib/action_view/helpers/atom_feed_helper.rb
@@ -4,7 +4,7 @@ module ActionView
4 4 # = Action View Atom Feed Helpers
5 5 module Helpers #:nodoc:
6 6 module AtomFeedHelper
7   - # Adds easy defaults to writing Atom feeds with the Builder template engine (this does not work on ERb or any other
  7 + # Adds easy defaults to writing Atom feeds with the Builder template engine (this does not work on ERB or any other
8 8 # template languages).
9 9 #
10 10 # Full usage example:
2  actionpack/lib/action_view/helpers/capture_helper.rb
@@ -14,7 +14,7 @@ module CaptureHelper
14 14 # variable. You can then use this variable anywhere in your templates or layout.
15 15 #
16 16 # ==== Examples
17   - # The capture method can be used in ERb templates...
  17 + # The capture method can be used in ERB templates...
18 18 #
19 19 # <% @greeting = capture do %>
20 20 # Welcome to my shiny new web page! The date and time is
2  actionpack/lib/action_view/helpers/prototype_helper.rb
@@ -584,7 +584,7 @@ def update_page(&block)
584 584
585 585 # Works like update_page but wraps the generated JavaScript in a
586 586 # <tt>\<script></tt> tag. Use this to include generated JavaScript in an
587   - # ERb template. See JavaScriptGenerator for more information.
  587 + # ERB template. See JavaScriptGenerator for more information.
588 588 #
589 589 # +html_options+ may be a hash of <tt>\<script></tt> attributes to be
590 590 # passed to ActionView::Helpers::JavaScriptHelper#javascript_tag.
2  actionpack/lib/action_view/helpers/url_helper.rb
@@ -183,7 +183,7 @@ def url_for(options = {})
183 183 # link_to "Profiles", :controller => "profiles"
184 184 # # => <a href="/profiles">Profiles</a>
185 185 #
186   - # You can use a block as well if your link target is hard to fit into the name parameter. ERb example:
  186 + # You can use a block as well if your link target is hard to fit into the name parameter. ERB example:
187 187 #
188 188 # <%= link_to(@profile) do %>
189 189 # <strong><%= @profile.name %></strong> -- <span>Check it out!</span>
2  actionpack/lib/action_view/template/handlers/erb.rb
@@ -55,7 +55,7 @@ def add_postamble(src)
55 55
56 56 class ERB
57 57 # Specify trim mode for the ERB compiler. Defaults to '-'.
58   - # See ERb documentation for suitable values.
  58 + # See ERB documentation for suitable values.
59 59 class_attribute :erb_trim_mode
60 60 self.erb_trim_mode = '-'
61 61
6 activerecord/lib/active_record/fixtures.rb
@@ -173,10 +173,10 @@ class FixturesFileNotFound < StandardError; end
173 173 # traversed in the database to create the fixture hash and/or instance variables. This is expensive for
174 174 # large sets of fixtured data.
175 175 #
176   -# = Dynamic fixtures with ERb
  176 +# = Dynamic fixtures with ERB
177 177 #
178 178 # Some times you don't care about the content of the fixtures as much as you care about the volume. In these cases, you can
179   -# mix ERb in with your YAML or CSV fixtures to create a bunch of fixtures for load testing, like:
  179 +# mix ERB in with your YAML or CSV fixtures to create a bunch of fixtures for load testing, like:
180 180 #
181 181 # <% for i in 1..1000 %>
182 182 # fix_<%= i %>:
@@ -186,7 +186,7 @@ class FixturesFileNotFound < StandardError; end
186 186 #
187 187 # This will create 1000 very simple YAML fixtures.
188 188 #
189   -# Using ERb, you can also inject dynamic values into your fixtures with inserts like <tt><%= Date.today.strftime("%Y-%m-%d") %></tt>.
  189 +# Using ERB, you can also inject dynamic values into your fixtures with inserts like <tt><%= Date.today.strftime("%Y-%m-%d") %></tt>.
190 190 # This is however a feature to be used with some caution. The point of fixtures are that they're
191 191 # stable units of predictable sample data. If you feel that you need to inject dynamic values, then
192 192 # perhaps you should reexamine whether your application is properly testable. Hence, dynamic values
2  activesupport/lib/active_support/core_ext/string/output_safety.rb
@@ -9,7 +9,7 @@ module Util
9 9 # A utility method for escaping HTML tag characters.
10 10 # This method is also aliased as <tt>h</tt>.
11 11 #
12   - # In your ERb templates, use this method to escape any unsafe content. For example:
  12 + # In your ERB templates, use this method to escape any unsafe content. For example:
13 13 # <%=h @person.name %>
14 14 #
15 15 # ==== Example:
4 railties/lib/rails/source_annotation_extractor.rb
@@ -11,7 +11,7 @@
11 11 #
12 12 # Annotations are looked for in comments and modulus whitespace they have to
13 13 # start with the tag optionally followed by a colon. Everything up to the end
14   -# of the line (or closing ERb comment tag) is considered to be their text.
  14 +# of the line (or closing ERB comment tag) is considered to be their text.
15 15 class SourceAnnotationExtractor
16 16 class Annotation < Struct.new(:line, :tag, :text)
17 17
@@ -99,4 +99,4 @@ def display(results, options={})
99 99 puts
100 100 end
101 101 end
102   -end
  102 +end

0 comments on commit bd3cdee

Please sign in to comment.
Something went wrong with that request. Please try again.