app/controllers/application_controller.rb
##
# A simple helper function which provides the 'respond_to do' for a list
# to be returned in the json format.
#
A simple helper function which provides the 'respond_to do' for a list
to be returned in the json format.
A simple helper function which provides the ' respond_to do ' for a list to be returned in the json format .
def json_respond(list) 
    respond_to do |format|
      format.json{ render :json => list }
    end
  end
def json_respond ( list ) respond_to do | format | format . json { render :json => list } end end
A simple helper function which provides the 'respond_to do' for a list
to be returned in the json format.
A simple helper function which provides the ' respond_to do ' for a list to be returned in the json format .
list
<not_specific>