Forum: Ruby on Rails Help with text replacement plugin

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
John D. (Guest)
on 2009-05-23 16:50
Hi guys,

I thought of having a plugin which replaces text with the tag of an
image (f.e. 'read' => '<img src="images/read.png" />') would be great.

I started with to create this plugin, but I didn't get far. Is there
anyone who can help me with this? My idea is to have all 'translations'
in a *.yml file. But I don't know how to load this file from the plugin
and how to store the values in an array.

If someone would like to help with this small but handy plugin, please
let me know. I'll put my stuff on github then.

Thanks a lot in advance.

-patrick
John D. (Guest)
on 2009-05-23 19:31
Fernando P. (Guest)
on 2009-05-23 20:46
> If someone would like to help with this small but handy plugin, please
> let me know. I'll put my stuff on github then.

A well crafted gsub can do that easily.
This topic is locked and can not be replied to.