Velocipede's User, Sales, and Bike Inventory Web App
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

43 lines
1.3 KiB

Velocipede::Application.routes.draw do
devise_for :users
netzke
=begin
resources :users
# The priority is based upon order of creation:
# first created -> highest priority.
match 'site/index' => 'site#index'
resources :bike_brands, :except => [:edit, :delete]
resources :bike_models, :except => [:edit, :delete]
resources :bike_statuses
resources :bike_styles
resources :bike_conditions
resources :bikes
namespace :acts_as_loggable do
resources :logs
resources :bike_actions
resources :user_actions
resources :transaction_actions
end
#user logs
get 'users/:loggable_id/logs' => 'user_logs#index', :as => 'user_logs'
get 'users/:loggable_id/logs/new' => 'user_logs#new', :as => 'new_user_log'
post 'users/:loggable_id/logs' => 'user_logs#create'
get 'users/:loggable_id/logs/:id/edit' => 'user_logs#edit', :as => 'edit_bike_log'
#bike logs
get 'bikes/:loggable_id/logs' => 'bike_logs#index', :as => 'bike_logs'
get 'bikes/:loggable_id/logs/new' => 'bike_logs#new', :as => 'new_bike_log'
post 'bikes/:loggable_id/logs' => 'bike_logs#create'
get 'bikes/:loggable_id/logs/:id/edit' => 'bike_logs#edit', :as => 'edit_bike_log'
#match ':loggable_type/:loggable_id/logs' => 'acts_as_loggable/logs#index', :as => 'loggable_logs'
=end
root :to => 'site#index'
end