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.

38 lines
1.1 KiB

12 years ago
Velocipede::Application.routes.draw do
devise_for :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
12 years ago
#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'
12 years ago
#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'
12 years ago
#match ':loggable_type/:loggable_id/logs' => 'acts_as_loggable/logs#index', :as => 'loggable_logs'
12 years ago
root :to => 'site#index'
12 years ago
end