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