I got it. There is also another way, which is to define the helper 
method as an instance of the helper class using "self". This way:

def self.format_currency(price)
...
end

Then in the view this this <%= 
Admin::currencyHelper.format_currency(price)%>

But the drawback is that you have to manually use the full namespace in 
your views and the code might get ugly. But, I know it is bad but it is 
an option.

I kind of like you last suggestion, and I wish I had learned this trick 
before. Just to clarify your last suggestion, in the case of the 
Currency, do you create a stand-alone helper, I mean, a helper separated 
from a controller and place it into the helpers folder?

Thank you

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/531a902d100e9872096bcc61e0954610%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to