Partials VS Helper methods: how do you render code in a view from DRY?
Only registered users can participate in the survey. Please come in.
Partials VS Helper methods: how do you render code in a view from DRY?
- 12.5% Partials. Helpers are only needed to remove code from the view. thirteen
- 24% Mostly Partials, helpers for outputting / formatting data. 25
- 6.7% Basically Helpers (in those pieces where there is little HTML and a lot of code). 7
- 8.6% Helpers. Partials are only for large pieces of HTML and widgets with a small amount of code. 9
- 48% A matter of taste of the developer, the main thing is to adhere to one style throughout the project. fifty