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’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]
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:
Yup. But I don’t think the answer to my question about helpers is
addressed there.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs