Skip to content

Commit d0cdc96

Browse files
author
Zachary Scott
committed
Merge pull request rails#16451 from y-yagi/patch-2
[ci skip] Fix sample code in engines guide
2 parents ff24041 + 38e8bb8 commit d0cdc96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides/source/engines.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ following to the dummy application's routes file at
136136
`test/dummy/config/routes.rb`:
137137

138138
```ruby
139-
mount Blorgh::Engine, at: "blorgh"
139+
mount Blorgh::Engine => "/blorgh"
140140
```
141141

142142
### Inside an Engine
@@ -173,7 +173,7 @@ Within `lib/blorgh/engine.rb` is the base class for the engine:
173173

174174
```ruby
175175
module Blorgh
176-
class Engine < Rails::Engine
176+
class Engine < ::Rails::Engine
177177
isolate_namespace Blorgh
178178
end
179179
end

0 commit comments

Comments
 (0)