Today I'm fighting against this:
mkdir': Permission denied @ dir_s_mkdir - /app/assets/stylesheets/material_ui (Errno::EACCES)
rails new etc etc...
I have found the solution. Is so simply to be silly, but as I've found other people stumbling against this mistake, I'll answer my own question as documentation.
The fail is in the path.
is not the same of
The second one is the right one because is the absolute path, of the generated application.
The first one, as it starts with
/ is interpreted as a subfolder of the recipe execution point, and, as it doesn't exists, it raises a permission error.