I ran into the following error while attempting to create a new model called calendar today:
chris@chris-VirtualBox:~/calendar$ rails g model calendar invoke active_record The name 'Calendar' is either already used in your application or reserved by Ruby on Rails. Please choose an alternative and run this generator again.
It turns out that this was due to the fact that my application was also called Calendar. In order to get around this I decided to rename the application. This required a little bit of searching and thanks to this Stackoverflow post I found references in the following files:
– config/mongoid.yml (if using Mongoid)
– app/views/layouts/application.html.erb, in title tag
Let me know if you find any more spots that I’ve missed!