aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2014-08-10 22:10:15 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2014-08-10 22:10:15 +0900
commit38e8bb830108f91a8de832631c5147e1beea08b6 (patch)
tree936dba883c4d6db264cdca33d34fd573bf5b806f
parentff240410622c8911f59b58113c7d7c53caad0450 (diff)
downloadrails-38e8bb830108f91a8de832631c5147e1beea08b6.tar.gz
rails-38e8bb830108f91a8de832631c5147e1beea08b6.tar.bz2
rails-38e8bb830108f91a8de832631c5147e1beea08b6.zip
[ci skip] Fix sample code in engines guide
-rw-r--r--guides/source/engines.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/engines.md b/guides/source/engines.md
index e9cce3f159..24548a5b01 100644
--- a/guides/source/engines.md
+++ b/guides/source/engines.md
@@ -136,7 +136,7 @@ following to the dummy application's routes file at
`test/dummy/config/routes.rb`:
```ruby
-mount Blorgh::Engine, at: "blorgh"
+mount Blorgh::Engine => "/blorgh"
```
### Inside an Engine
@@ -173,7 +173,7 @@ Within `lib/blorgh/engine.rb` is the base class for the engine:
```ruby
module Blorgh
- class Engine < Rails::Engine
+ class Engine < ::Rails::Engine
isolate_namespace Blorgh
end
end