Rails sometimes have the wrong orientation when generated in a structure

Is there a way to fix that ? Thanks :p
Continue to help post