diff options
author | Lars Henrik Mai <lars.mai@kontinui.de> | 2014-03-29 16:48:54 +0100 |
---|---|---|
committer | Lars Henrik Mai <lars.mai@kontinui.de> | 2014-03-29 16:49:22 +0100 |
commit | 32b1ab88cbd74bf2147731cc0c7e6c8db95fc540 (patch) | |
tree | 57900fd451368f2609f6314d166741d98a4de0f6 /app/views/pois/index.json.jbuilder | |
parent | 90121413900895958a2ed8daaae2ab1e7dde996d (diff) |
added basic scaffold for pois
Diffstat (limited to 'app/views/pois/index.json.jbuilder')
-rw-r--r-- | app/views/pois/index.json.jbuilder | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/pois/index.json.jbuilder b/app/views/pois/index.json.jbuilder new file mode 100644 index 0000000..c0f24fe --- /dev/null +++ b/app/views/pois/index.json.jbuilder @@ -0,0 +1,4 @@ +json.array!(@pois) do |poi| + json.extract! poi, :id, :message, :lat, :lon + json.url poi_url(poi, format: :json) +end |