Sha256: 6878e3707e470021547e56730dabaa7cf3caf8a1e23bf2f5e002b7c02e51ff0a
Contents?: true
Size: 1.44 KB
Versions: 1
Compression:
Stored size: 1.44 KB
Contents
Raddar::Engine.routes.draw do resources :notifications, only: [:index, :show] do patch 'read_all', on: :collection end devise_for :users, controllers: { registrations: 'raddar/users/registrations', sessions: 'raddar/users/sessions', passwords: 'raddar/users/passwords', omniauth_callbacks: 'raddar/users/omniauth_callbacks' }, module: :devise, class_name: 'Raddar::User' as :user do get '/users/password/change' => 'users/passwords#change', as: :change_user_password patch '/users/password/change' => 'users/passwords#do_change', as: :do_change_user_password get '/users/registrations/destroy' => 'users/registrations#destroy', as: :destroy_user_registration end # The priority is based upon order of creation: first created -> highest priority. # See how all your routes lay out with "rake routes". # You can have the root of your site routed with "root" root 'home#index' namespace 'users', as: 'user' do resource :privacy, only: [:edit, :update] resource :email_preferences, only: [:edit, :update] resources :external_accounts, only: [:index, :destroy] end resources :users, only: [:show] do resources :followerships, only: [:create, :destroy], on: :member get 'followers', controller: 'followerships' get 'following', controller: 'followerships' end namespace :admin do root 'dashboard#index' resources :users, only: [:index, :show, :update] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
raddar-0.0.1.pre | config/routes.rb |