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
Include Erb Delimiters Inside of a String in an Erb Block
Ruby, Generate a Random Hex Color (Only Light Colors)
How to Use H2 as Embedded Database in Postgres-Compat Mode, from Jruby/Rails
Scraping an Angularjs Application
How to Prevent Rails Controller Generator to Modify Config/Routes.Rb
Ruby, How to Access Local Variables Outside the Do - End Loop
Argumenterror: Unknown Key: :Conditions. Valid Keys Are: :Class_Name, :Class, :Foreign_Key
How to Copy an Object with Presigned Url
Mongodb Group Using Ruby Driver
Ruby Converting Utc to User's Time Zone
Handle Check Box Forms with an ':Has_Many :Through' Record Association
Ruby Looks for Class Variable in the Object Instead of Specific Class
Show Markers on Google Maps Dynamically -Rails 3.2
Capybara Trouble Filling in Js Modal
Ruby - What's the Difference Between Single and Double Quotes
Https Request Using Net::Http's Block Form -- Is It Possible