json 값을 보려면 url을 입력하고 iPhone 프로젝트에 액세스하려면 어떻게해야합니까?레일에서 만든 내 json 데이터에 액세스하는 방법
여기 여기 내 경로 내 인덱스 방법
def index
@players = Player.find(:all)
respond_to do |format|
format.html
format.json { render :json => @players.to_json }
end
end
입니다.
ChooseTeams::Application.routes.draw do
resources :players
root :to => "players#index"
end
레일스에 새 기능이있어서 여기에 다른 정보가 없으므로 추가 정보를 요청하십시오.