Sha256: 2a3762ecba65f4e745783d0184fc374725a8289b23da40f3988bc23599dd622f

Contents?: true

Size: 768 Bytes

Versions: 1

Compression:

Stored size: 768 Bytes

Contents

Pbw::Engine.routes.draw do
	devise_for :users, {
	    class_name: 'Pbw::User',
	    controllers: { registrations: 'pbw/registrations', :sessions => 'pbw/sessions', :passwords => 'pbw/passwords'},
	    module: :devise
 	}
 	%W{areas commands items tokens}.each do |controller|
 		get "#{controller}/:_type" => "#{controller}\#index"
 		get "#{controller}/:_type/:id" => "#{controller}\#show"
 		post "#{controller}/:_type" => "#{controller}\#create"
 		get "#{controller}/:_type/new" => "#{controller}\#new"
 		get "#{controller}/:_type/:id/edit" => "#{controller}\#edit"
 		delete "#{controller}/:_type/:id" => "#{controller}\#delete"
 		put "#{controller}/:_type/:id" => "#{controller}\#update"
 	end
 	
 	resources :item_containers
 	resources :item_conversions
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pbw-0.0.10 config/routes.rb