Remove if Rails.env.development?
with corresponding end
from the routes.rb
. You are getting error as routes are not defined for production
environment. The routes should look like below:
Portfolio::Application.routes.draw do
# UI CONTROLLER SETUP
get 'ui/:action', controller: 'ui'
get 'ui' => 'ui#index'
get 'work/:action', controller: 'work'
get 'resume' => 'pages#resume'
root :to => 'pages#home'
end