Displaying 1 result from an estimated 1 matches for "create_display_d".
2006 Jul 16
1
Helpers for partials too ?
...ically have access
to the methods inside MainHelper (in \app\helpers\main_helper.rb).
Should not the partial templates called from main.rhtml via <%= render
:partial => ''partial'' %> also have access to the methods in main_helper
?
I have tried
<% display_dates = create_display_dates(@events) %>
and
<% display_dates = MainHelper::create_display_dates(@events) %>
and both report "undefined method `create_display_dates'' ..."
Do I misunderstand the nature of helper scoping ?
--
Posted via http://www.ruby-forum.com/.