ruby - Change Rails Scaffold Naming Scheme -


I am a happy user of ROR but there is a complaint. When I generate scripts / scaffolds it automatically generates all my files and places them in their proper folder. However, all the different scaffolds I have created are their views the same files

I have a bunch of index.html.arb view files and when I have to open them in my text editor, it is difficult to say

I want to designate the path command's default naming scheme to name the individual files in the name of their view folder. Therefore, instead of index.html.erb, use index.home.html.

Is there any way to do this, or am I stuck? Solving many files with the problem of the same name Have you been searching for developers?

Thank you!

You are going down the road to fight the railing conventions and when you work against it So the rail works best. One of the main parts of the train's philosophy is that there is a set of conventions once taught that makes it easier to find their way around any rail application.

Instead of trying to define the railroad, how do I work, I recommend taking advantage of the features provided by your text editor or IDE to navigate right on the right text template. . For example, Rail bundle inside Textile on Mac lets you open a scene file attached to a particular model and there is a plugin for Vim that provides the same feature.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -