From 653275a0f889b286c443d39dbae04645fa475e7d Mon Sep 17 00:00:00 2001 From: Benjamin ter Kuile Date: Wed, 28 Mar 2012 15:58:58 +0200 Subject: [PATCH] add routing to README --- README.rdoc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.rdoc b/README.rdoc index cb743c7..0709157 100644 --- a/README.rdoc +++ b/README.rdoc @@ -32,6 +32,15 @@ This will add some gems you might like anyway, here a list: * paperclip * email_validator (validates :email, email: true) +=== Routing + +Add the following routes: + devise_for :users, :controllers => {:sessions => 'cmtool/sessions', :passwords => 'cmtool/passwords'} + mount Cmtool::Engine => '/cmtool' + match "/:name" => "pages#show" + match "/*url" => "pages#not_found" + root :to => 'pages#home' + === User model The user model is important. We recommend you to create your own user model: class User