app/views/crops/_predictions.html.haml
%... \#{expression}
can be written without interpolation as %...= expression
Open
Open
%span #{'week'.pluralize(in_weeks(crop.median_lifespan))}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
HamlLint/UnnecessaryInterpolation
Avoid using unnecessary interpolation for inline tag content.
Bad
haml
%tag #{expression}
Good: more concise
haml
%tag= expression