3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/active_blog/mapper.rb', line 3
def active_blog_at(mount_location)
scope mount_location do
resources :blog_posts, :module => 'active_blog', :path => '/', :only => [] do
get 'page/:page', :action => :index, :on => :collection
end
match '/' => 'active_blog/blog_posts#index', :as => :active_blog, :via => [:get]
match '/-/preview' => 'active_blog/blog_posts#preview', :as => :active_blog_preview, :via => [:post, :put]
match '/atom.xml' => 'active_blog/blog_posts#atom', :as => :active_blog_feed, :via => [:get], :format => :xml
match '/archives' => 'active_blog/blog_posts#archives', :as => :active_blog_archives, :via => [:get]
match '/:cached_slug' => 'active_blog/blog_posts#show', :as => :active_blog_post, :via => [:get]
end
end
|