Ruby on Rails Inflection Issue

前端 未结 2 1809
再見小時候
再見小時候 2021-01-19 21:59

I am using Ruby on Rails to create a website for a game I play.

I have a User model and a Starbase model. The relationship I am trying to

2条回答
  •  无人及你
    2021-01-19 22:44

    Have you tried adding a line for the inverse inflection (i.e. 'singular'):

     inflect.singular "starbases", "starbase"
    

    I tried your example in my console and it was the singularization that caused problems, not the other way around. I'm not sure if this fixes other issues (like routes), but it should fix the simple stuff (I think).

提交回复
热议问题