Sha256: da54782427cf0b428f9cb8ddbfd69c29e4834ba15b7e7edb1c812ed0a2b4a258

Contents?: true

Size: 448 Bytes

Versions: 7

Compression:

Stored size: 448 Bytes

Contents

Rails.application.routes.draw do

  root to: redirect("/#{I18n.default_locale}/info/index")
  mount StaticBlocks::Engine => "/static_blocks_admin"

  scope ":locale", locale: /#{I18n.available_locales.join("|")}/ do
    get "info/index"
  end

  match '*path', to: redirect("/#{I18n.default_locale}/%{path}"), constraints: lambda { |req| !req.path.starts_with? "/#{I18n.default_locale}/" }
  match '', to: redirect("/#{I18n.default_locale}")


end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
static_blocks-0.1.1 spec/dummy/config/routes.rb
static_blocks-0.1.0 spec/dummy/config/routes.rb
static_blocks-0.0.5 spec/dummy/config/routes.rb
static_blocks-0.0.4 spec/dummy/config/routes.rb
static_blocks-0.0.3 spec/dummy/config/routes.rb
static_blocks-0.0.2 spec/dummy/config/routes.rb
static_blocks-0.0.1 spec/dummy/config/routes.rb