made devise routes slightly more intutive. chore completed MS

This commit is contained in:
maxwell 2010-06-13 16:28:48 -07:00
parent c84c99f993
commit 1029fd5854
3 changed files with 11 additions and 4 deletions

View file

@ -101,11 +101,11 @@ Devise.setup do |config|
# scope, setting true below.
# Note that devise does not generate default routes. You also have to
# specify them in config/routes.rb
# config.use_default_scope = true
config.use_default_scope = true
# Configure the default scope used by Devise. By default it's the first devise
# role declared in your routes.
# config.default_scope = :user
config.default_scope = :user
# ==> Navigation configuration
# Lists the formats that should be treated as navigational. Formats like

View file

@ -1,7 +1,14 @@
Diaspora::Application.routes.draw do |map|
devise_for :users
#routes for devise, not really sure you will need to mess with this in the future, lets put default,
#non mutable stuff in anohter file
devise_for :users, :path_names => {:sign_up => "signup", :sign_in => "login", :sign_out => "logout"}
match 'login', :to => 'devise/sessions#new', :as => "new_user_session"
match 'logout', :to => 'devise/sessions#destroy', :as => "destroy_user_session"
match 'signup', :to => 'devise/registrations#new', :as => "new_user_registration"
resources :users
# The priority is based upon order of creation:
# first created -> highest priority.

View file

@ -4,6 +4,6 @@ describe UsersController do
render_views
#fixtures here?
it 'should, after logging in redirect to the dashboard page' do
pending
end
end