Methods
C
R
Class Public methods
controller_path()
# File actionpack/test/controller/render_json_test.rb, line 21
def self.controller_path
  'test'
end
Instance Public methods
render_json_hello_world()
# File actionpack/test/controller/render_json_test.rb, line 33
def render_json_hello_world
  render :json => ActiveSupport::JSON.encode(:hello => 'world')
end
render_json_hello_world_with_callback()
# File actionpack/test/controller/render_json_test.rb, line 41
def render_json_hello_world_with_callback
  render :json => ActiveSupport::JSON.encode(:hello => 'world'), :callback => 'alert'
end
render_json_hello_world_with_status()
# File actionpack/test/controller/render_json_test.rb, line 37
def render_json_hello_world_with_status
  render :json => ActiveSupport::JSON.encode(:hello => 'world'), :status => 401
end
render_json_nil()
# File actionpack/test/controller/render_json_test.rb, line 25
def render_json_nil
  render :json => nil
end
render_json_render_to_string()
# File actionpack/test/controller/render_json_test.rb, line 29
def render_json_render_to_string
  render :text => render_to_string(:json => '[]')
end
render_json_with_custom_content_type()
# File actionpack/test/controller/render_json_test.rb, line 45
def render_json_with_custom_content_type
  render :json => ActiveSupport::JSON.encode(:hello => 'world'), :content_type => 'text/javascript'
end
render_json_with_extra_options()
# File actionpack/test/controller/render_json_test.rb, line 57
def render_json_with_extra_options
  render :json => JsonRenderable.new, :except => [:c, :e]
end
render_json_with_render_to_string()
# File actionpack/test/controller/render_json_test.rb, line 53
def render_json_with_render_to_string
  render :json => {:hello => render_to_string(:partial => 'partial')}
end
render_json_without_options()
# File actionpack/test/controller/render_json_test.rb, line 61
def render_json_without_options
  render :json => JsonRenderable.new
end
render_symbol_json()
# File actionpack/test/controller/render_json_test.rb, line 49
def render_symbol_json
  render :json => ActiveSupport::JSON.encode(:hello => 'world')
end