문제

Hey so I realize this probably isn't good practice, but I was wondering if it's technically possible to combine the code from my various rails model files into one .rb file?

I have a lot of very short models, and when making changes to them it'd be quite helpful to be able to see them all in one place instead of having to open up numerous windows.

도움이 되었습니까?

해결책

This goes against the rails philosophy of Convention over Configuration.

Ruby is a highly flexible language, so yes it would be possible to do that, but you would have to undo much of the auto-configuration that makes up the entire reason for using rails.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top