From 265600ec4e6d2f39996a585d159067bc348d91e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Trung=20L=C3=AA?= Date: Sat, 22 Oct 2011 10:03:17 +1100 Subject: [PATCH] Application routes should be engine routes --- config/routes.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 200ff7f..1d92d3a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,9 +1,7 @@ -Rails.application.routes.draw do - - match "/email_to_friend/:type/:id" => 'email_sender#send_mail', :as => :email_to_friend +SpreeEmailToFriend::Engine.routes.draw do + match '/email_to_friend/:type/:id' => 'email_sender#send_mail', :as => :email_to_friend namespace :admin do resource :captcha_settings end - end