Sha256: 52bd5284a7474ba6e12416d0305b5b46a1acf8b5d4ba9efe8c4bf76ea387a972
Contents?: true
Size: 750 Bytes
Versions: 1
Compression:
Stored size: 750 Bytes
Contents
Rails.application.routes.draw do # Place the contact_us routes within the optional locale scope # If the I18n gem is installed and the localize_routes variable has # been set to true in the application's initializer file if defined?(I18n) && ContactUs.localize_routes scope "(:locale)", locale: /#{I18n.available_locales.join("|")}/ do resources :contacts, controller: "contact_us/contacts", only: [:new, :create] get "contact-us" => "contact_us/contacts#new", as: :contact_us end else resources :contacts, controller: "contact_us/contacts", only: [:new, :create] get "contact-us" => "contact_us/contacts#new", as: :contact_us end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
contact_us-1.2.0 | config/routes.rb |