Rails 3: Routing and pluralization issue for has_one -


I have created a loft for Eto, where I am trying to edit a single "ethos" to a user. Athos was working but on the user model it was only working with me: Athos

The user should get 1 so that I can make a better association. But now when I turn to the model, it creates a very spider effect that I can not track down.

User model:

  class user & lt; ActiveRecord :: Base has has_many: jobs have_one: ethos #used has_many: ethos   

On all pages now I get uninitialized constant user: Edit EthosController # on Athos < P> Please help, how can I fix this?

Did you try?

  class users & lt; ActiveRecord :: Base has_many: jobs have_one: etho   

is one must be singular:

Comments