Sha256: d2d88a66038a3e7bd7bd11c72250ac3502d056dda00a2829c3a1f338784d835d

Contents?: true

Size: 332 Bytes

Versions: 2

Compression:

Stored size: 332 Bytes

Contents

Wbase::Engine.routes.draw do
  [
    'affiliate',
    'contact',
    'faq',
    'privacy',
    'shop',
    'start',
    'subscribed',
    'terms',
    'thanks',
    'welcome',
  ].each do |action|
    get "/#{ action }", to: "static_pages##{ action }"
    get "/#{ action.gsub('_', '-') }", to: "static_pages##{ action }"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wbase-0.0.3 config/routes.rb
wbase-0.0.2 config/routes.rb