Re: [Radiant] Extend ApplicationHelper

2011-10-11 Thread Jim Gay
On Sun, Oct 9, 2011 at 9:09 AM, Shanison lxsh...@gmail.com wrote: Hi all, I have some methods that needs to be used by all helpers in the extensions. So I need to add some methods to ApplicationHelper. I can't just create the application_helper.rb in my extensions, it will just overwrite the

Re: [Radiant] Extend ApplicationHelper

2011-10-11 Thread Shanison
Thanks for the reply. However if i create new helper module, it won't behave as application_helper. So there is not method inheritance. Then for other modules that i need to use some codes inside this helper, i need to include the new module?

Re: [Radiant] Extend ApplicationHelper

2011-10-11 Thread Jim Gay
On Tue, Oct 11, 2011 at 11:40 AM, Shanison lxsh...@gmail.com wrote: Thanks for the reply. However if i create new helper module, it won't behave as application_helper. So there is not method inheritance.  Then for other modules that i need to use some codes inside this helper, i need to include

Re: [Radiant] Extend ApplicationHelper

2011-10-11 Thread Shanison
You have the following application helper module ApplicationHelper def method_a end end Then if you have other helper module OtherHelper def b method_a # i can call method a here end end I am not sure how this actually works since module has not inheritance. So my question is if I

Re: [Radiant] Extend ApplicationHelper

2011-10-11 Thread Shanison
I have follow the code in help extension. But it doesn't seem to work. I am using Radiant 0.9.1. I have a a common_helper.rb under my extension my_extension/app/helpers/common_helper.rb. So under class MyExtensionExtension Radiant::Extension def activate

[Radiant] Extend ApplicationHelper

2011-10-09 Thread Shanison
Hi all, I have some methods that needs to be used by all helpers in the extensions. So I need to add some methods to ApplicationHelper. I can't just create the application_helper.rb in my extensions, it will just overwrite the application_helper in radiant and only my own methods in the