提交 38e8bb83 编写于 作者: Y yuuji.yaginuma

[ci skip] Fix sample code in engines guide

上级 ff240410
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册