Class: Tanshuku::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- Tanshuku::Engine
- Defined in:
- lib/tanshuku/engine.rb
Overview
Note:
The example below generates a routing GET ‘/t/:key` to `Tanshuku::UrlsController#show`. When your Rails app receives a request to /t/abcdefghij0123456789
, Tanshuku::UrlsController#show will be called and a Tanshuku::Url
record with a key abcdefghij0123456789
will be found. Then the request will be redirected to the Tanshuku::Url
record’s original URL.
Tanshuku’s Rails engine.