mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Typo and grammatical fixes [ci skip]
This commit is contained in:
parent
e0326f56b4
commit
ef0f633c66
8 changed files with 12 additions and 12 deletions
|
@ -103,7 +103,7 @@ module ActionView
|
||||||
}.join("\n").html_safe
|
}.join("\n").html_safe
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns a link tag that browsers and news readers can use to auto-detect
|
# Returns a link tag that browsers and feed readers can use to auto-detect
|
||||||
# an RSS or Atom feed. The +type+ can either be <tt>:rss</tt> (default) or
|
# an RSS or Atom feed. The +type+ can either be <tt>:rss</tt> (default) or
|
||||||
# <tt>:atom</tt>. Control the link options in url_for format using the
|
# <tt>:atom</tt>. Control the link options in url_for format using the
|
||||||
# +url_options+. You can modify the LINK tag itself in +tag_options+.
|
# +url_options+. You can modify the LINK tag itself in +tag_options+.
|
||||||
|
|
|
@ -260,7 +260,7 @@ module ActionView
|
||||||
Tags::GroupedCollectionSelect.new(object, method, self, collection, group_method, group_label_method, option_key_method, option_value_method, options, html_options).render
|
Tags::GroupedCollectionSelect.new(object, method, self, collection, group_method, group_label_method, option_key_method, option_value_method, options, html_options).render
|
||||||
end
|
end
|
||||||
|
|
||||||
# Return select and option tags for the given object and method, using
|
# Returns select and option tags for the given object and method, using
|
||||||
# #time_zone_options_for_select to generate the list of option tags.
|
# #time_zone_options_for_select to generate the list of option tags.
|
||||||
#
|
#
|
||||||
# In addition to the <tt>:include_blank</tt> option documented above,
|
# In addition to the <tt>:include_blank</tt> option documented above,
|
||||||
|
|
|
@ -349,7 +349,7 @@ module ActiveModel
|
||||||
# invoked often in a typical rails, both of which invoke the method
|
# invoked often in a typical rails, both of which invoke the method
|
||||||
# +match_attribute_method?+. The latter method iterates through an
|
# +match_attribute_method?+. The latter method iterates through an
|
||||||
# array doing regular expression matches, which results in a lot of
|
# array doing regular expression matches, which results in a lot of
|
||||||
# object creations. Most of the times it returns a +nil+ match. As the
|
# object creations. Most of the time it returns a +nil+ match. As the
|
||||||
# match result is always the same given a +method_name+, this cache is
|
# match result is always the same given a +method_name+, this cache is
|
||||||
# used to alleviate the GC, which ultimately also speeds up the app
|
# used to alleviate the GC, which ultimately also speeds up the app
|
||||||
# significantly (in our case our test suite finishes 10% faster with
|
# significantly (in our case our test suite finishes 10% faster with
|
||||||
|
|
|
@ -366,7 +366,7 @@ Lead Contributor: [Daniel Schierbeck](http://workingwithrails.com/person/5830-da
|
||||||
* `Inflector#parameterize` produces a URL-ready version of its input, for use in `to_param`.
|
* `Inflector#parameterize` produces a URL-ready version of its input, for use in `to_param`.
|
||||||
* `Time#advance` recognizes fractional days and weeks, so you can do `1.7.weeks.ago`, `1.5.hours.since`, and so on.
|
* `Time#advance` recognizes fractional days and weeks, so you can do `1.7.weeks.ago`, `1.5.hours.since`, and so on.
|
||||||
* The included TzInfo library has been upgraded to version 0.3.12.
|
* The included TzInfo library has been upgraded to version 0.3.12.
|
||||||
* `ActiveSuport::StringInquirer` gives you a pretty way to test for equality in strings: `ActiveSupport::StringInquirer.new("abc").abc? => true`
|
* `ActiveSupport::StringInquirer` gives you a pretty way to test for equality in strings: `ActiveSupport::StringInquirer.new("abc").abc? => true`
|
||||||
|
|
||||||
Railties
|
Railties
|
||||||
--------
|
--------
|
||||||
|
|
|
@ -464,7 +464,7 @@ stylesheet_link_tag :monkey # =>
|
||||||
|
|
||||||
#### auto_discovery_link_tag
|
#### auto_discovery_link_tag
|
||||||
|
|
||||||
Returns a link tag that browsers and news readers can use to auto-detect an RSS or Atom feed.
|
Returns a link tag that browsers and feed readers can use to auto-detect an RSS or Atom feed.
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
auto_discovery_link_tag(:rss, "http://www.example.com/feed.rss", {title: "RSS Feed"}) # =>
|
auto_discovery_link_tag(:rss, "http://www.example.com/feed.rss", {title: "RSS Feed"}) # =>
|
||||||
|
@ -1143,7 +1143,7 @@ Returns a string of option tags for pretty much any country in the world.
|
||||||
|
|
||||||
#### country_select
|
#### country_select
|
||||||
|
|
||||||
Return select and option tags for the given object and method, using country_options_for_select to generate the list of option tags.
|
Returns select and option tags for the given object and method, using country_options_for_select to generate the list of option tags.
|
||||||
|
|
||||||
#### option_groups_from_collection_for_select
|
#### option_groups_from_collection_for_select
|
||||||
|
|
||||||
|
@ -1242,7 +1242,7 @@ Returns a string of option tags for pretty much any time zone in the world.
|
||||||
|
|
||||||
#### time_zone_select
|
#### time_zone_select
|
||||||
|
|
||||||
Return select and option tags for the given object and method, using `time_zone_options_for_select` to generate the list of option tags.
|
Returns select and option tags for the given object and method, using `time_zone_options_for_select` to generate the list of option tags.
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
time_zone_select( "user", "time_zone")
|
time_zone_select( "user", "time_zone")
|
||||||
|
@ -1258,7 +1258,7 @@ date_field("user", "dob")
|
||||||
|
|
||||||
### FormTagHelper
|
### FormTagHelper
|
||||||
|
|
||||||
Provides a number of methods for creating form tags that doesn't rely on an Active Record object assigned to the template like FormHelper does. Instead, you provide the names and values manually.
|
Provides a number of methods for creating form tags that don't rely on an Active Record object assigned to the template like FormHelper does. Instead, you provide the names and values manually.
|
||||||
|
|
||||||
#### check_box_tag
|
#### check_box_tag
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ can expect it to be marked "invalid" as soon as it's reviewed.
|
||||||
|
|
||||||
Sometimes, the line between 'bug' and 'feature' is a hard one to draw.
|
Sometimes, the line between 'bug' and 'feature' is a hard one to draw.
|
||||||
Generally, a feature is anything that adds new behavior, while a bug is
|
Generally, a feature is anything that adds new behavior, while a bug is
|
||||||
anything that fixes already existing behavior that is mis-behaving. Sometimes,
|
anything that fixes already existing behavior that is misbehaving. Sometimes,
|
||||||
the core team will have to make a judgement call. That said, the distinction
|
the core team will have to make a judgement call. That said, the distinction
|
||||||
generally just affects which release your patch will get in to; we love feature
|
generally just affects which release your patch will get in to; we love feature
|
||||||
submissions! They just won't get backported to maintenance branches.
|
submissions! They just won't get backported to maintenance branches.
|
||||||
|
|
|
@ -703,7 +703,7 @@ WARNING: The asset tag helpers do _not_ verify the existence of the assets at th
|
||||||
|
|
||||||
#### Linking to Feeds with the `auto_discovery_link_tag`
|
#### Linking to Feeds with the `auto_discovery_link_tag`
|
||||||
|
|
||||||
The `auto_discovery_link_tag` helper builds HTML that most browsers and newsreaders can use to detect the presence of RSS or Atom feeds. It takes the type of the link (`:rss` or `:atom`), a hash of options that are passed through to url_for, and a hash of options for the tag:
|
The `auto_discovery_link_tag` helper builds HTML that most browsers and feed readers can use to detect the presence of RSS or Atom feeds. It takes the type of the link (`:rss` or `:atom`), a hash of options that are passed through to url_for, and a hash of options for the tag:
|
||||||
|
|
||||||
```erb
|
```erb
|
||||||
<%= auto_discovery_link_tag(:rss, {action: "feed"},
|
<%= auto_discovery_link_tag(:rss, {action: "feed"},
|
||||||
|
|
|
@ -309,7 +309,7 @@ class PluginGeneratorTest < Rails::Generators::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_creating_plugin_in_app_directory_adds_gemfile_entry
|
def test_creating_plugin_in_app_directory_adds_gemfile_entry
|
||||||
# simulate application existance
|
# simulate application existence
|
||||||
gemfile_path = "#{Rails.root}/Gemfile"
|
gemfile_path = "#{Rails.root}/Gemfile"
|
||||||
Object.const_set('APP_PATH', Rails.root)
|
Object.const_set('APP_PATH', Rails.root)
|
||||||
FileUtils.touch gemfile_path
|
FileUtils.touch gemfile_path
|
||||||
|
@ -323,7 +323,7 @@ class PluginGeneratorTest < Rails::Generators::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_skipping_gemfile_entry
|
def test_skipping_gemfile_entry
|
||||||
# simulate application existance
|
# simulate application existence
|
||||||
gemfile_path = "#{Rails.root}/Gemfile"
|
gemfile_path = "#{Rails.root}/Gemfile"
|
||||||
Object.const_set('APP_PATH', Rails.root)
|
Object.const_set('APP_PATH', Rails.root)
|
||||||
FileUtils.touch gemfile_path
|
FileUtils.touch gemfile_path
|
||||||
|
|
Loading…
Reference in a new issue