aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2010-08-26 17:41:32 +1200
committerPhilip Arndt <parndt@gmail.com>2010-08-26 17:41:32 +1200
commit5cb85902866dfc0f64885a76ce38f23dd1f89d53 (patch)
treeb9d2110ee59a9bd301ba5648083f5138b17ed0f8 /config/routes.rb
parentda6b5e1f572960533f31026981df57f2d59d1b05 (diff)
downloadrefinerycms-blog-5cb85902866dfc0f64885a76ce38f23dd1f89d53.tar.gz
refinerycms-blog-5cb85902866dfc0f64885a76ce38f23dd1f89d53.tar.bz2
refinerycms-blog-5cb85902866dfc0f64885a76ce38f23dd1f89d53.zip
frontend markup and categories.
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 2478f1b..36e80f9 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,5 +1,7 @@
ActionController::Routing::Routes.draw do |map|
- map.resources :blog_posts, :as => :blog
+ map.blog_post '/blog', :controller => :blog_posts, :action => :index
+ map.blog_post '/blog/:id', :controller => :blog_posts, :action => :show
+ map.blog_category '/blog/categories/:category_id', :controller => :blog_posts, :action => :index
map.namespace(:admin, :path_prefix => 'refinery') do |admin|
admin.namespace :blog do |blog|