Helpers in extensions

I’m attempting to create a tag that outputs a dollar value, such as

number_to_currency(tag.locals.item.price)

This isn’t working. What might I be doing wrong, or are there
limitations to using rails helpers that I don’t understand?
Thanks

-Jim

I think you’ll just need to include the necessary helper in your tags
module. I have some photos I am manipulating in tags logic, so I needed
a
helper. Simply:

include FileColumnHelper

And I had access to the helpers.

Thanks,


Barry Hess
[email protected]

http://www.scrawlers.com

Jim G. wrote:

I’m attempting to create a tag that outputs a dollar value, such as

number_to_currency(tag.locals.item.price)

I assume you have read the extensions tutorial? It talks about creating
tags:

http://wiki.radiantcms.org/Creating_Radiant_Extensions


John L.
http://wiseheartdesign.com

Aha! Thanks

On Aug 16, 2007, at 16:40, John W. Long wrote:

Jim G. wrote:

I’m attempting to create a tag that outputs a dollar value, such as

number_to_currency(tag.locals.item.price)

I assume you have read the extensions tutorial? It talks about
creating
tags:

http://wiki.radiantcms.org/Creating_Radiant_Extensions

Yup. But I don’t think the answer to my question about helpers is
addressed there.