vendor/rails/actionpack/lib/action_view/renderable.rb
# NOTE: The template that this mixin is beening include into is frozen
# So you can not set or modify any instance variables
The template that this mixin is beening include into is frozen
So you can not set or modify any instance variables
The template that this mixin is beening include into is frozen So you can not set or modify any instance variables
def compile!(render_symbol, local_assigns)
        locals_code = local_assigns.keys.map { |key| "#{key} = local_assigns[:#{key}];" }.join
        source = <<-end_src
          def #{render_symbol}(local_assigns)
            old_output_buffer = output_buffer;#{locals_code};#{compiled_source}
          ensure
            self.output_buffer = old_output_buffer
          end
        end_src
        begin
          logger = defined?(ActionController) && Base.logger
          logger.debug "Compiling template #{render_symbol}" if logger
          ActionView::Base::CompiledTemplates.module_eval(source, filename, 0)
        rescue Exception => e 
          if logger
            logger.debug "ERROR: compiling #{render_symbol} RAISED #{e}"
            logger.debug "Function body: #{source}"
            logger.debug "Backtrace: #{e.backtrace.join("\n")}"
          end
          raise ActionView::TemplateError.new(self, {}, e)
        end
      end
def compile! ( render_symbol , local_assigns ) locals_code = local_assigns . keys . map { | key | "#{key} = local_assigns[:#{key}];" } . join source = <<-end_src 
          def  #{ render_symbol } (local_assigns)
            old_output_buffer = output_buffer; #{ locals_code } ; #{ compiled_source } 
          ensure
            self.output_buffer = old_output_buffer
          end
         end_src begin logger = defined? ( ActionController ) && Base . logger logger . debug "Compiling template #{render_symbol}" if logger ActionView :: Base :: CompiledTemplates . module_eval ( source , filename , 0 ) rescue Exception => e if logger logger . debug "ERROR: compiling #{render_symbol} RAISED #{e}" logger . debug "Function body: #{source}" logger . debug "Backtrace: #{e.backtrace.join("\n")}" end raise ActionView :: TemplateError . new ( self , { } , e ) end end
NOTE: The template that this mixin is beening include into is frozen
So you can not set or modify any instance variables
NOTE : The template that this mixin is beening include into is frozen So you can not set or modify any instance variables
# errors from template code
render_symbol
local_assigns