Module: SportDbAdmin::RoutesHelper
- Defined in:
- app/helpers/sport_db_admin/routes_helper.rb
Instance Method Summary collapse
-
#short_country_path(country) ⇒ Object
routes for shortcuts.
- #short_event_path(event) ⇒ Object
- #short_team_path(team) ⇒ Object
Instance Method Details
#short_country_path(country) ⇒ Object
routes for shortcuts
9 10 11 |
# File 'app/helpers/sport_db_admin/routes_helper.rb', line 9 def short_country_path( country ) short_country_worker_path( country.key ) end |
#short_event_path(event) ⇒ Object
17 18 19 20 |
# File 'app/helpers/sport_db_admin/routes_helper.rb', line 17 def short_event_path( event ) key = event.key.tr('/', '_') short_event_worker_path( key ) end |
#short_team_path(team) ⇒ Object
13 14 15 |
# File 'app/helpers/sport_db_admin/routes_helper.rb', line 13 def short_team_path( team ) short_team_worker_path( team.key ) end |