Use underscore versions of model names for translation keys.
This commit is contained in:
parent
0737c4f169
commit
36970bcf50
4 changed files with 8 additions and 8 deletions
|
@ -25,7 +25,7 @@
|
|||
<% Report.categories_for(@report.issue.reportable).each do |c| %>
|
||||
<li>
|
||||
<%= radio_button :report, :category, c %>
|
||||
<%= label_tag "report_category_#{c}", t("reports.categories.#{@report.issue.reportable.class.name}.#{c}") %> <br/>
|
||||
<%= label_tag "report_category_#{c}", t("reports.categories.#{@report.issue.reportable.class.name.underscore}.#{c}") %> <br/>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue