Project

General

Profile

Accessing locals in partial for Hooks.

Added by Rupesh J over 9 years ago

Hello,

While using hooks, in the following way,

class PollsHookListener < Redmine::Hook::ViewListener
  render_on :view_groups_memberships_table_header, :partial => "polls/project_overview" 
end

How to access the locals in the partial ?

For the above hook example the context is set with membership and group,
I am not able to access these locals in the partial through :membership,

Please help me on how to proceed on this ?


Replies (1)

RE: Accessing locals in partial for Hooks. - Added by Rupesh J over 9 years ago

Got it..!! :(
Usage error.. Was calling a wrong hook..

    (1-1/1)