Commit 3c1f3bf1

mo k <m@mokhan.ca>
2011-10-29 02:37:23
fix routes spec.
1 parent 091ff5d
Changed files (2)
app/controllers/categories_controller.rb
@@ -1,5 +1,5 @@
 class CategoriesController < ApplicationController
-  # GET /categories/1
+  # GET /categories/fondant
   def show
     @category = Category.where(:slug => params[:id]).first
     @creations = Creation.joins(:categories).where(:categories => {:slug => params[:id]}).page(params[:page]).per(6)
config/routes.rb
@@ -22,6 +22,7 @@ Cake::Application.routes.draw do
 
   # /categories
   match 'categories/:id' => 'categories#show', :method => 'GET'
+  get 'categories/show'
 
   # /authentications
   match 'authentications' => 'authentications#index', :method => 'GET'