In the middle of, I tried to route to the top page, create a controller, and execute rails s,
Operation not permitted
And the error message is displayed.
System Preferences → Security & Privacy → Privacy → Select Full Disk Access from the line on the left → Check the terminal.
I was able to solve this by restarting the terminal.