1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #16451 from y-yagi/patch-2

[ci skip] Fix sample code in engines guide
This commit is contained in:
Zachary Scott 2014-08-10 10:24:51 -07:00
commit d0cdc96919

View file

@ -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