Restructure notes URLs according to standard rails conventions

This commit is contained in:
Tom Hughes 2012-03-10 15:45:33 +00:00
parent 6aca6cfabf
commit c9fb146608
21 changed files with 196 additions and 80 deletions

View 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