From a8b5bce609089af8795768230c7dd3a9b87cd5e0 Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Sat, 14 Sep 2013 10:00:42 +1200 Subject: Supported Rails 4 and Refinery 3.0.0.dev --- config/routes.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index ad4db70..8a7ae27 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -3,9 +3,9 @@ Refinery::Core::Engine.routes.draw do root :to => "posts#index" resources :posts, :only => [:show] - match 'feed.rss', :to => 'posts#index', :as => 'rss_feed', :defaults => {:format => "rss"} - match 'categories/:id', :to => 'categories#show', :as => 'category' - match ':id/comments', :to => 'posts#comment', :as => 'comments' + get 'feed.rss', :to => 'posts#index', :as => 'rss_feed', :defaults => {:format => "rss"} + get 'categories/:id', :to => 'categories#show', :as => 'category' + post ':id/comments', :to => 'posts#comment', :as => 'comments' get 'archive/:year(/:month)', :to => 'posts#archive', :as => 'archive_posts' get 'tagged/:tag_id(/:tag_name)' => 'posts#tagged', :as => 'tagged_posts' end -- cgit v1.2.3