Restructure notes URLs according to standard rails conventions
This commit is contained in:
parent
6aca6cfabf
commit
c9fb146608
21 changed files with 196 additions and 80 deletions
15
app/views/notes/_note.gpx.builder
Normal file
15
app/views/notes/_note.gpx.builder
Normal file
|
@ -0,0 +1,15 @@
|
|||
xml.wpt("lon" => note.lon, "lat" => note.lat) do
|
||||
xml.desc do
|
||||
xml.cdata! render(:partial => "description", :object => note, :formats => [ :html ])
|
||||
end
|
||||
|
||||
xml.extension do
|
||||
if note.status = "open"
|
||||
xml.closed "0"
|
||||
else
|
||||
xml.closed "1"
|
||||
end
|
||||
|
||||
xml.id note.id
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue