app/controllers/roboto/robots_controller.rb in roboto-0.0.2 vs app/controllers/roboto/robots_controller.rb in roboto-0.1.0
- old
+ new
@@ -6,10 +6,11 @@
:content_type => 'text/plain'
end
protected
def robot_contents
- Roboto::ContentProvider.new.contents
+ # process erb template in the context of this controller request
+ Roboto::ContentProvider.new.contents(binding)
end
def robots_path
Rails.root.join("config/robots/#{Rails.env}.txt")
end