GeoRSS aggregator and Layar augmented reality server
25'ten fazla konu seçemezsiniz
Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
|
- class PostsController < ApplicationController
- def near
- @posts = Post.near(params[:lat].to_f, params[:lng].to_f, params[:radius].to_f)
-
- respond_to do |format|
- format.html # near.html.erb
- format.json { render json: @posts }
- end
- end
- end
|