Comprint::Application.routes.draw do
# Home
root to: 'home#index'
# Devise
devise_for :users
# Utility
get 'jobs/complete', to: 'jobs#complete', :as => 'jobs_complete'
get 'mark_completed/:id', to: 'jobs#mark_complete', :as => 'mark_complete'
get 'restore_job/:id', to: 'jobs#restore', :as => 'restore_job'
post 'print_job/:id', to: 'jobs#printed', :as => 'print_job'
# REST
resources :clients
resources :jobs
resources :products
resources :product_fields do
collection { post :sort }
end
# Trash
get 'trash/jobs', to: 'jobs#trash', :as => 'jobs_trash'
get 'trash/clients', to: 'clients#trash', :as => 'clients_trash'
get 'trash/products', to: 'products#trash', :as => 'products_trash'
# Search
get 'search/clients', to: 'clients#search', :as => 'clients_search'
end
I, [2014-04-16T06:56:29.258863 #1745] INFO -- : Started GET "/jobs?page=2" for 192.168.1.1 at 2014-04-16 06:56:29 +1000
I, [2014-04-16T06:56:29.370805 #1745] INFO -- : Processing by JobsController#index as HTML
I, [2014-04-16T06:56:29.370914 #1745] INFO -- : Parameters: {"page"=>"2"}
I, [2014-04-16T06:56:29.392292 #1745] INFO -- : Completed 401 Unauthorized in 21ms
I, [2014-04-16T06:56:29.475797 #1745] INFO -- : Started GET "/users/sign_in" for 192.168.1.1 at 2014-04-16 06:56:29 +1000
I, [2014-04-16T06:56:29.480881 #1745] INFO -- : Processing by Devise::SessionsController#new as HTML
I, [2014-04-16T06:56:29.549565 #1745] INFO -- : Rendered devise/sessions/new.html.erb within layouts/application (39.2ms)
I, [2014-04-16T06:56:29.620787 #1745] INFO -- : Completed 200 OK in 140ms (Views: 113.6ms | ActiveRecord: 2.7ms)
I, [2014-04-16T06:56:29.632056 #1745] INFO -- : Started GET "/stylesheets/devise/sessions.css" for 192.168.1.1 at 2014-04-16 06:56:29 +1000
F, [2014-04-16T06:56:29.634503 #1745] FATAL -- :
ActionController::RoutingError (No route matches [GET] "/stylesheets/devise/sessions.css"):
actionpack (4.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
I, [2014-04-16T06:56:29.636224 #1745] INFO -- : Started GET "/javascripts/devise/sessions.js" for 192.168.1.1 at 2014-04-16 06:56:29 +1000
F, [2014-04-16T06:56:29.638464 #1745] FATAL -- :
ActionController::RoutingError (No route matches [GET] "/javascripts/devise/sessions.js"):
actionpack (4.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
actionpack (4.0.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.2) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.2) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.2) lib/active_support/tagged_logging.rb:67:in `block in tagged'
activesupport (4.0.2) lib/active_support/tagged_logging.rb:25:in `tagged'
activesupport (4.0.2) lib/active_support/tagged_logging.rb:67:in `tagged'
railties (4.0.2) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.2) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.2) lib/rails/engine.rb:511:in `call'
railties (4.0.2) lib/rails/application.rb:97:in `call'
passenger (4.0.37) lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
passenger (4.0.37) lib/phusion_passenger/request_handler/thread_handler.rb:142:in `accept_and_process_next_request'
passenger (4.0.37) lib/phusion_passenger/request_handler/thread_handler.rb:110:in `main_loop'
passenger (4.0.37) lib/phusion_passenger/request_handler.rb:448:in `block (3 levels) in start_threads'