Use named routes in note RSS builder
This commit is contained in:
parent
361906af9e
commit
28b4c624b8
2 changed files with 3 additions and 3 deletions
|
@ -7,8 +7,8 @@ xml.item do
|
|||
xml.title t('note.rss.new', :place => note.nearby_place)
|
||||
end
|
||||
|
||||
xml.link url_for(:controller => "browse", :action => "note", :id => note.id, :only_path => false)
|
||||
xml.guid url_for(:controller => "note", :action => "read", :id => note.id, :only_path => false)
|
||||
xml.link browse_note_url(note)
|
||||
xml.guid note_url(note)
|
||||
xml.description render(:partial => "description", :object => note, :formats => [ :html ])
|
||||
xml.author note.author_name
|
||||
xml.pubDate note.updated_at.to_s(:rfc822)
|
||||
|
|
|
@ -109,7 +109,7 @@ OpenStreetMap::Application.routes.draw do
|
|||
match '/browse/relation/:id' => 'browse#relation', :via => :get, :id => /\d+/
|
||||
match '/browse/relation/:id/history' => 'browse#relation_history', :via => :get, :id => /\d+/
|
||||
match '/browse/changeset/:id' => 'browse#changeset', :via => :get, :as => :changeset, :id => /\d+/
|
||||
match '/browse/note/:id' => 'browse#note', :via => :get, :id => /\d+/
|
||||
match '/browse/note/:id' => 'browse#note', :via => :get, :id => /\d+/, :as => "browse_note"
|
||||
match '/user/:display_name/edits' => 'changeset#list', :via => :get
|
||||
match '/user/:display_name/edits/feed' => 'changeset#feed', :via => :get, :format => :atom
|
||||
match '/user/:display_name/notes' => 'notes#mine', :via => :get
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue