diff --git a/config/routes.rb b/config/routes.rb index c728f892e..e8382f7fe 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -5,17 +5,12 @@ Rosa::Application.routes.draw do devise_scope :user do get '/users/auth/:provider' => 'users/omniauth_callbacks#passthru' - end - devise_for :users, :controllers => {:omniauth_callbacks => 'users/omniauth_callbacks'}, :skip => [:registrations] do - get '/users/cancel' => 'devise/registrations#cancel', :as => 'cancel_user_registration' - post '/users' => 'devise/registrations#create', :as => 'user_registration' - get '/users/sign_up' => 'devise/registrations#new', :as => 'new_user_registration' - delete '/users' => 'devise/registrations#destroy' get '/user' => 'users#profile', :as => 'edit_profile' put '/user' => 'users#update', :as => 'update_profile' - get '/users/:id' => 'users#profile', :as => 'edit_user' - put '/users/:id' => 'users#update', :as => 'update_user' + get '/users/:id/edit' => 'users#profile', :as => 'edit_user' + put '/users/:id/edit' => 'users#update', :as => 'update_user' end + devise_for :users, :controllers => {:omniauth_callbacks => 'users/omniauth_callbacks'} resources :users do resources :groups, :only => [:new, :create, :index] diff --git a/db/schema.rb b/db/schema.rb index b6c5303f1..f33c79ae4 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20120303171802) do +ActiveRecord::Schema.define(:version => 20120306212914) do create_table "activity_feeds", :force => true do |t| t.integer "user_id", :null => false @@ -104,6 +104,7 @@ ActiveRecord::Schema.define(:version => 20120303171802) do t.datetime "created_at", :null => false t.datetime "updated_at", :null => false t.decimal "commentable_id", :precision => 50, :scale => 0 + t.integer "project_id" end create_table "containers", :force => true do |t|