Stefan Schubert wrote:
Ladislav Slezak schrieb:
I wanted to define some namespaces for the helpers, like Label for delete, but I failed. Rails could not find the functions in the namespace, any idea why?
Duncan should know more about. He has already played with namespaces. :-)
I have finally solved the problem, now we have HTML and Label modules in web-client/webclient/app/helpers/view_helpers subdirectory. Example (display localized "Delete" string): <% require 'view_helpers/label' %> <%= Label.delete %> Feel free to add new functions/modules there. -- Best Regards Ladislav Slezák Yast Developer ------------------------------------------------------------------------ SUSE LINUX, s.r.o. e-mail: lslezak@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org