I'm teaching Rails to general population high school kids. Despite my best efforts, a few kids used a singular controller name. E.g. Model is Car, but then when creating the controller, they also say "Car" instead of "Cars". This seems to create a set of problems (such as model name error, routing errors, etc.). I haven't found a clean, elegant way to deal with this. Current Workarounds: (1) I have them use a completely different model name, such as using "Vehicle" and "Vehicles" for the model and controller names, instead of cars. (2) I have them just start a new project and do it right the 2nd time.
Attempted fixes that failed: (a) Refactoring the bad model name to the correct one: has no apparent effect. (b) Creating a new model "Car2": we see a bunch of things like "car2s" as Rails auto-pluralizes stuff. :)
Other possibly useful clues / comments: (1) We are using RubyMine as our IDE, on Windows boxes. (2) I am a very experienced programmer in general, but only intermediate level or even beginner level Rails programmer.
Edit 6/11/16: So another kid did it, but I caught it early and just did a Refactor + Rename in RubyMine. It renamed the filename, renamed the class name, and renamed the views directory it had created. After that everything worked fine.