rsl (owner)

Revisions

gist: 200757 Download_button fork
public
Public Clone URL: git://gist.github.com/200757.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Template
custom_content_for :foo do
  ...
end
 
# Helper
def custom_content_for(name, &block)
  @custom_content_fors || []
  @custom_content_fors << :name
  # Process the actual content_for shit here
end
 
# Then in layout [pseudo code]
 
@custom_content_fors.each do |name|
  yield(name)
end