Method: ActionController::Base#render_action

Defined in:
lib/base.rb

#render_action(action_name, status = nil, with_layout = true) ⇒ Object

original version of method in actionpack 1.12.5 def render_action(action_name, status = nil, with_layout = true) #:nodoc:

template = default_template_name(action_name.to_s)
if with_layout && !template_exempt_from_layout?(template) 
  render_with_layout(template, status)
else
  render_without_layout(template, status)
end

end



33
34
35
36
37
38
39
40
41
# File 'lib/base.rb', line 33

def render_action(action_name, status = nil, with_layout = true) #:nodoc:
  r = check_mdml(action_name) and return r
  template = default_template_name(action_name.to_s)
  if with_layout && !template_exempt_from_layout?(template) 
    render_with_layout(template, status)
  else
    render_without_layout(template, status)
  end
end