0

My translation works great, but when I try to append a field of my model I get and error:

This is the code:

<%=t :beneficios @offer.benefits %>

this is the error:

app/views/offers/show.html.erb:18: syntax error, unexpected tIVAR, expecting ')'
...er.append=(t :beneficios @offer.benefits );@output_buffer.sa...

The problem is when I try to append the model field. But I can't find a solution on google and I don't think this is an option:

<%=t :beneficios %><%= @offer.benefits %>

Thanks in advance for your help.

Jean
  • 5,201
  • 11
  • 51
  • 87

1 Answers1

0

You forgot a coma after :beneficios :)

<%= t :beneficios, @offer.benefits %>
Benjamin Bouchet
  • 12,971
  • 2
  • 41
  • 73