Creating a controller with rails generate is causing a strange error
I am having the same issues, and yes the file exists. I rolled my project back to ffi '~> 1.12.2' and it is working fine again.
It seems the issue has something to do with libffi version conflicts.
A workaround: gem inst ffi -- --disable-system-libffi
I raised an issue, see here: https://github.com/ffi/ffi/issues/791