Skip to content

Instantly share code, notes, and snippets.

View Archimidis's full-sized avatar

Nikolas Vourlakis Archimidis

View GitHub Profile
class ApplicationController < ActionController::Base
...
# FORCE to implement content_for in controller
def view_context
super.tap do |view|
(@_content_for || {}).each do |name,content|
view.content_for name, content
end
end
end