foliwe
Joined 7/26/2017
foliwe said over 7 years ago on Working with Internationalization :
I have missing routes went i added the scope tomy route.rb files

Here is by file

scope "(:local)",locale: /#{I18n.available_locales.join("|")}/ do
    resources :listings, except: [:edit] do
      member do
        get 'listing'
        get 'description'
        get 'photo_upload'
        get 'price'
        get 'address'
      end
      resources :photos, only:[:create,:destroy]
    end
    root to: "home#index"
    devise_for :users, controllers: { registrations: 'registrations' }
    resources :users ,only:[:show] do
      resources :reports, only:[:new, :create]
    end
  end

Now i have missing routes errors but it works without the scope