Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why did Rails change "drive" to "drife"?

I just ran this..

rails g scaffold shared_drive drive_name:string drive_path:string security_group_read:string security_group_modify:string

When I open the route localhost:3000/shared_drives/new the header reads New Shared Drife

When I try to create a new object on this page, I get this error

ActionController::ParameterMissing in SharedDrivesController#create 
param is missing or the value is empty: shared_drife

What is going on?!?! Why did Rails change the name of my model?

like image 328
thisguy123 Avatar asked Jan 28 '16 07:01

thisguy123


1 Answers

It's about "Inflections". You can find more information here. It discussed earlier in issues of rails/rails and here is the solution.

like image 70
Salih Özdemir Avatar answered Nov 02 '22 21:11

Salih Özdemir