Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails shows error "uninitialized constant URI::Generic"

I'm using rails 5.2.3 with apache2 when I run the development server it shows no error but when I deploy it with passenger and apache2 server it shows this error

Error: uninitialized constant URI::Generic,
like image 205
Muhammad Elbadawy Avatar asked Feb 09 '20 06:02

Muhammad Elbadawy


1 Answers

add the first of file (config/application.rb) you can add this line

require 'uri'
like image 85
Omnia Magd Avatar answered Sep 28 '22 10:09

Omnia Magd