xml.wpt("lon" => note.lon, "lat" => note.lat) do
- xml.time note.created_at.to_formatted_s(:iso8601)
+ xml.time note.created_at.to_fs(:iso8601)
xml.name t("browse.note.title", :id => note.id)
xml.desc do
xml.dc :creator, note.author.display_name if note.author
- xml.pubDate note.created_at.to_formatted_s(:rfc822)
+ xml.pubDate note.created_at.to_fs(:rfc822)
xml.geo :lat, note.lat
xml.geo :long, note.lon
xml.georss :point, "#{note.lat} #{note.lon}"
xml.dc :creator, comment.author.display_name if comment.author
- xml.pubDate comment.created_at.to_formatted_s(:rfc822)
+ xml.pubDate comment.created_at.to_fs(:rfc822)
xml.geo :lat, comment.note.lat
xml.geo :long, comment.note.lon
xml.georss :point, "#{comment.note.lat} #{comment.note.lon}"
xml.dc :creator, comment.author.display_name if comment.author
- xml.pubDate comment.created_at.to_formatted_s(:rfc822)
+ xml.pubDate comment.created_at.to_fs(:rfc822)
end
end
xml.guid diary_entry_url(entry.user, entry, :only_path => false)
xml.description entry.body.to_html
xml.dc :creator, entry.user.display_name
- xml.pubDate entry.created_at.to_formatted_s(:rfc822)
+ xml.pubDate entry.created_at.to_fs(:rfc822)
xml.comments diary_entry_url(entry.user, entry, :anchor => "comments", :only_path => false)
if entry.latitude && entry.longitude
xml.dc :creator, trace.user.display_name
- xml.pubDate trace.timestamp.to_formatted_s(:rfc822)
+ xml.pubDate trace.timestamp.to_fs(:rfc822)
if trace.latitude && trace.longitude
xml.geo :lat, trace.latitude
assert_select "item", :count => 1 do
assert_select "link", browse_note_url(open_note)
assert_select "guid", note_url(open_note)
- assert_select "pubDate", open_note.created_at.to_formatted_s(:rfc822)
+ assert_select "pubDate", open_note.created_at.to_fs(:rfc822)
# assert_select "geo:lat", open_note.lat.to_s
# assert_select "geo:long", open_note.lon
# assert_select "georss:point", "#{open_note.lon} #{open_note.lon}"