Rails 4 Error with Every Command "'Load': No Implicit Conversion of Nil into String" (MAC Os X 10.9)

Unable to run any command inside a rails project directory

Found the solution, It was the issue with the OpenSSL libraries on Catalina, Fixed by executing the following commands

ln -s /usr/local/Cellar/openssl@1.1/1.1.1d/lib/libcrypto.dylib /usr/local/lib/libcrypto.dylib
ln -s /usr/local/Cellar/openssl@1.1/1.1.1d/lib/libssl.dylib /usr/local/lib/libssl.dylib

if these commands executed without any error, everything should work.

Check the following gist

Rails rake db:migrate doesn't work: nothing happens

Problem solved by using Vagrant instead of local installation.
Don't really know what was the issue, maybe in tie with Mac OS X.

Rails fresh install throws TypeError, points to spring gem

As it turns out, the problem was the result of the folder names in my working directory's path. It appears as though the spaces in the folder names were causing the error.

Once I removed the spaces and changed the folder names from:

/Users/useraccount/Google Drive Family/code/Rails/12-Week-Challenge/Week_0 [Dry Run]/testapp/

to:

/Users/useraccount/Google_Drive_Family/code/Rails/12-Week-Challenge/Week_0_DryRun/testapp/

everything worked perfectly. Problem solved.

rails generate command return error

It looks like you're in your home directory. To generate a rails controller you should be in the directory of the rails application you want to modify.

edit: If this isn't the case, paste what happens when you do this (from a clean directory):

rails new new-app
cd new-app
rails g controller welcome index


Related Topics



Leave a reply



Submit