diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-04-02 03:26:31 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-02 03:26:31 +0900 |
commit | e4e12185837c1aa9233e4669d0a54b54173e1bf1 (patch) | |
tree | 8a63972a1b3317906a04dccbe76146716c5a4a0e /railties/lib | |
parent | a835fba44f23637aa8d043a46cbc3799f644bea1 (diff) | |
parent | 771973c13dd5b68fe96fbe5ea96bd11656437dc1 (diff) | |
download | rails-e4e12185837c1aa9233e4669d0a54b54173e1bf1.tar.gz rails-e4e12185837c1aa9233e4669d0a54b54173e1bf1.tar.bz2 rails-e4e12185837c1aa9233e4669d0a54b54173e1bf1.zip |
Merge pull request #35820 from sharang-d/url-to-URL-except-actionpack
url -> URL where apt except inside actionpack/
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/engine.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index 9b3698aa5e..778bbebe75 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -230,7 +230,7 @@ module Rails # # If +MyEngine+ is isolated, The routes above will point to # <tt>MyEngine::ArticlesController</tt>. You also don't need to use longer - # url helpers like +my_engine_articles_path+. Instead, you should simply use + # URL helpers like +my_engine_articles_path+. Instead, you should simply use # +articles_path+, like you would do with your main application. # # To make this behavior consistent with other parts of the framework, @@ -238,7 +238,7 @@ module Rails # normal Rails app, when you use a namespaced model such as # <tt>Namespace::Article</tt>, <tt>ActiveModel::Naming</tt> will generate # names with the prefix "namespace". In an isolated engine, the prefix will - # be omitted in url helpers and form fields, for convenience. + # be omitted in URL helpers and form fields, for convenience. # # polymorphic_url(MyEngine::Article.new) # # => "articles_path" # not "my_engine_articles_path" @@ -286,11 +286,11 @@ module Rails # Note that the <tt>:as</tt> option given to mount takes the <tt>engine_name</tt> as default, so most of the time # you can simply omit it. # - # Finally, if you want to generate a url to an engine's route using + # Finally, if you want to generate a URL to an engine's route using # <tt>polymorphic_url</tt>, you also need to pass the engine helper. Let's # say that you want to create a form pointing to one of the engine's routes. # All you need to do is pass the helper as the first element in array with - # attributes for url: + # attributes for URL: # # form_for([my_engine, @user]) # |