add routing to README

This commit is contained in:
2012-03-28 15:58:58 +02:00
parent a65ba361a2
commit 653275a0f8
+9
View File
@@ -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