ruby - Should I use .erb or .rhtml files for a Rails app in which all Controller logic exists in Views? -
I'm just starting to learn the railways I made an empty rail app. And instead of writing a controller, I want to keep all my control logic in my view instead of the different controller classes.
To do this, should I use .erb files or .rhtml files and What is the difference?
First of all, they are virtually the same thing, but you can use the new standard naming format of .html.erb
First of all, stop what you are doing and reconsider everything !!!!!
The argument from the whole point of MVC performance is different and vice versa. Most of your logic should be in your model and the controller should have the opportunity to grab that argument and present it in your ideas.
In addition to displaying data, you should not do anything in your thoughts.
Comments
Post a Comment