I work with Rails 5 . I just created a model Mediausing the scaffold tool.
rails g scaffold media name:string
And I have different names and routes, browsing, etc.

This was not proper pluralization, so when I rake routes, I received unexpected routes medium, and because of this I had different problems in the views.

When I try to use <%= form_for @media do .., I complained about no method media_index_path.
How can I fix this and work well?
Thanks in advance for your help.
source
share