You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, you'd have basically 3 translations.
t('.unhappy') <%= button_to t('.yes') %> or <%= button_to t('.no') %>?
In this case, gobbler does a lot more than it should... And also, this is what rails displays:
Herbgobbler gets confused on the following line:
Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete %>
This is what it generates
<%= t '.unhappy', :button_to => (button_to (t '.cancel_my_1'), registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete) %>
en.yml:
cancel_my_1: "Cancel my account"
unhappy: "Unhappy? %{button_to}"
In my opinion, this would be simpler like this:
t('.unhappy') <%= button_to t('.cancel_my'), registration_path(resource_name), data: { confirm: t('.are_you_sure')}, method: :delete %>
The text was updated successfully, but these errors were encountered: