We'll respond shortly.
after_filteris called after the template is rendered, thus you cannot set instance variables in it and expect them to be available in the template. The
after_filtermethod is good for post-render content manipulation or analysis such as gzipping, translating to pig latin or determining content-length. Perhaps it would be useful to add a
is_a?(Array). This means that none of the association proxy methods are available!
<code> class Foo < ActiveRecord::Base has_many :bar end foo = Foo.new foo.bars.reload.build NoMethodError: undefined method `build' for :Array </code>