mirror of https://github.com/rails/rails
Merge pull request #16451 from y-yagi/patch-2
[ci skip] Fix sample code in engines guide
This commit is contained in:
commit
d0cdc96919
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue