Commit 09e6c71c by Xuan Trung Le

fix bugs

parent 11d270d1
......@@ -4,13 +4,11 @@ require 'zip'
class Import
FTP_SERVER = '192.168.1.156'.freeze
USER = 'training'.freeze
PASS = 'training'.freeze
FILE = 'jobs.zip'.freeze
PATH_CSV = "#{Rails.root}/#{FILE}".freeze
def self.download_file
ftp = Net::FTP.new(FTP_SERVER, USER, PASS)
ftp = Net::FTP.new(FTP_SERVER, ENV["USER_FTP"], ENV["PASS_FTP"])
ftp.getbinaryfile(FILE)
end
......
Rails.application.routes.draw do
require 'sidekiq/web'
devise_for :admins
namespace :admins do
get 'applies/index'
resources :applies, only: [:index]
root 'applies#index'
end
require 'sidekiq/web'
root 'jobs#index'
devise_for :users, :controllers => {:registrations => "registrations"}
as :user do
get 'register/:step', to: 'registrations#new', as: :register
patch 'complete_registering' => 'registrations#complete_registering_user'
end
resources :cities, only: [:index, :show]
resources :industries, only: [:index, :show]
resources :favorites do
......@@ -34,7 +33,4 @@ Rails.application.routes.draw do
post :done
end
end
namespace :admins do
resources :applies, only: [:index]
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment