I've been configuring my devise installation and I came upon the line of:
root to: 'home#index'
From my understanding, I thought controllers were to be named plural. Is HomeController just an exception to the case?
I've been configuring my devise installation and I came upon the line of:
root to: 'home#index'
From my understanding, I thought controllers were to be named plural. Is HomeController just an exception to the case?
Although that tutorial is very good, you have to remember Devise does not mind what your controllers are called (FYI)
Neither does Rails actually. However, it's defaulted to be plural. You can get around it by using singular routing resources (like in this answer), but it's not a big deal
We've used singular controller names before with no issues. It's singular model names which are the most important
It is, the plural rule applies so as to differentiate your Model names from your Controllers, I guess you do not have a Class called Home do you?