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
1 changed files with 2 additions and 2 deletions

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