Method: ActionController::Base#render_file

Defined in:
lib/base.rb

#render_file(template_path, status = nil, use_full_path = false, locals = {}) ⇒ Object

original version of method in actionpack 1.12.5 def render_file(template_path, status = nil, use_full_path = false, locals = {}) #:nodoc:

add_variables_to_assigns
assert_existence_of_template_file(template_path) if use_full_path
logger.info("Rendering #{template_path}" + (status ? " (#{status})" : '')) if logger
render_text(@template.render_file(template_path, use_full_path, locals), status)

end



15
16
17
18
19
20
21
# File 'lib/base.rb', line 15

def render_file(template_path, status = nil, use_full_path = false, locals = {}) #:nodoc:
  add_variables_to_assigns
  r = check_mdml and return r
  assert_existence_of_template_file(template_path) if use_full_path
  logger.info("Rendering #{template_path}" + (status ? " (#{status})" : '')) if logger
  render_text(@template.render_file(template_path, use_full_path, locals), status)
end