Access plugin helper methods and lib on rails?

You can edit your file vendor/plugins/community_engine/init. Rb and add this line to load it.

You can edit your file vendor/plugins/community_engine/init. Rb and add this line to load it: ActionView::Base. Send(:include, MyHelper) and move you helper in your folder vendor/plugins/community_engine/helpers module MyHelper def my_method_here ... end end Hope this help!

Most sites that I've worked with physically copy the authenticated_system. Rb file into #{RAILS_ROOT}/lib and check it in. That way you can override the methods if you need to.

I can include the module, but still having trouble with the helpers =S – Hock Feb 28 '10 at 0:30 The library I mention above is the one that includes all of the helper methods in it. If you copy it into the lib directory, then use include AuthenticatedSystem in your controller - it will find the helper methods. – Taryn East Feb 28 '10 at 16:51 I've copied the module in the RAILS_ROOT/lib directory but the helpers (vendor/plugins/community_engine/app/helpers/) are still giving me problems =S I can't use those methods in my custom models =S – Hock Mar 1 '10 at 12:30 wait - why do you need them in your model?

A helper like "logged-in" is a controller/view-level access control method. – Taryn East Nov 22 at 9:06.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions