hi, i have a problem with inserting a variable embedded on a string.
The string is formed by two "%" at start and end wich i don't know this
usage (is a part of view_helper.rb of the plugin will_paginate):
%{ view <strong>%d - %d</strong> of <strong>%d</strong>
totals} %
i want to modify in:
%{ #{I18n.t('.mytranslation')} <strong>%d - %d</strong>
#{I18n.t('.mytranslation')} <strong>%d</strong>
#{I18n.t('.mytranslation')} } %
but don' t work.
waht is the correct syntax for this string?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---