Displaying 1 result from an estimated 1 matches for "magic_header".
2012 Sep 05
2
Partials and helpers
Hi,
Is there any reason why helpers cannot render partials?
I would like to do something like this in the layout:
<body>
  <%= magic_header %>
  
  <%= yield %>
</body>
and then have a magic_header helper
def magic_helper
  ...do some magic...
  render partial: "magic_helper"
end
Why is this wrong?
Cumprimentos,
Luís Ferreira
-- 
You received this message because you are subscribed to the Google Groups...