diff options
-rw-r--r-- | guides/source/action_view_overview.md | 8 | ||||
-rw-r--r-- | guides/source/active_support_core_extensions.md | 2 | ||||
-rw-r--r-- | guides/source/association_basics.md | 2 | ||||
-rw-r--r-- | guides/source/generators.md | 2 | ||||
-rw-r--r-- | guides/source/rails_application_templates.md | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/guides/source/action_view_overview.md b/guides/source/action_view_overview.md index 3dddac7b67..2625e237bf 100644 --- a/guides/source/action_view_overview.md +++ b/guides/source/action_view_overview.md @@ -79,7 +79,7 @@ The loop is set up in regular embedding tags (`<% %>`) and the name is written u Hi, Mr. <% puts "Frodo" %> ``` -To supress leading and trailing whitespaces, you can use `<%-` `-%>` interchangeably with `<%` and `%>`. +To suppress leading and trailing whitespaces, you can use `<%-` `-%>` interchangeably with `<%` and `%>`. #### Builder @@ -346,13 +346,11 @@ View Paths TODO... -Overview of all the helpers provided by Action View ---------------------------------------------------- +Overview of helpers provided by Action View +------------------------------------------- WIP: Not all the helpers are listed here. For a full list see the [API documentation](http://api.rubyonrails.org/classes/ActionView/Helpers.html) -TODO: I'm skeptical about whether it makes sense documenting all the helpers in an Action View Overview, or even some of them. *Agis-* - The following is only a brief overview summary of the helpers available in Action View. It's recommended that you review the [API Documentation](http://api.rubyonrails.org/classes/ActionView/Helpers.html), which covers all of the helpers in more detail, but this should serve as a good starting point. ### RecordTagHelper diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md index 9b93a94cf1..401e6f0596 100644 --- a/guides/source/active_support_core_extensions.md +++ b/guides/source/active_support_core_extensions.md @@ -148,7 +148,9 @@ Active Support provides `duplicable?` to programmatically query an object about ```ruby "foo".duplicable? # => true +"".duplicable? # => true 0.0.duplicable? # => false +false.duplicable? # => false ``` By definition all objects are `duplicable?` except `nil`, `false`, `true`, symbols, numbers, class, and module objects. diff --git a/guides/source/association_basics.md b/guides/source/association_basics.md index 896b2227fb..9bb5aa8bc2 100644 --- a/guides/source/association_basics.md +++ b/guides/source/association_basics.md @@ -135,7 +135,7 @@ end class Patient < ActiveRecord::Base has_many :appointments - has_many :physicians, :through: :appointments + has_many :physicians, through: :appointments end ``` diff --git a/guides/source/generators.md b/guides/source/generators.md index adfca9b4a4..d1ba19e078 100644 --- a/guides/source/generators.md +++ b/guides/source/generators.md @@ -376,7 +376,7 @@ Fallbacks allow your generators to have a single responsibility, increasing code Application Templates --------------------- -Now that you've seen how generators can be used _inside_ an application, did you know they can also be used to _generate_ applications too? This kind of generator is referred as a "template". This is a brief overview of the Templates API. For detailed documentation see the [Rails Application Templates guide](http://guides.rubyonrails.org/rails_application_templates.html) +Now that you've seen how generators can be used _inside_ an application, did you know they can also be used to _generate_ applications too? This kind of generator is referred as a "template". This is a brief overview of the Templates API. For detailed documentation see the [Rails Application Templates guide](rails_application_templates.html). ```ruby gem "rspec-rails", group: "test" diff --git a/guides/source/rails_application_templates.md b/guides/source/rails_application_templates.md index 46828b8737..6cd19eb8e9 100644 --- a/guides/source/rails_application_templates.md +++ b/guides/source/rails_application_templates.md @@ -89,7 +89,7 @@ add_source "http://code.whytheluckystiff.net" Adds a line inside the `Application` class for `config/application.rb`. -If options `:env` is specified, the line is appended to the corresponding file in `config/environments`. +If `options[:env]` is specified, the line is appended to the corresponding file in `config/environments`. ```ruby environment 'config.action_mailer.default_url_options = {host: 'http://yourwebsite.example.com'}, env: 'production' |