diff options
| author | mo khan <mo@mokhan.ca> | 2015-02-03 21:30:13 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-02-03 21:30:13 -0700 |
| commit | 2085d8aecbfb095bbf9989a56dd74dc89f1d2a3e (patch) | |
| tree | 45ab2811e6eb29364dfb526e21727735bbd7e11b /config | |
| parent | bab5e66e261774700eb3ad515eb929fc85991a69 (diff) | |
add association from agents to events.
Diffstat (limited to 'config')
| -rw-r--r-- | config/routes.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index c6f3589..e83648b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,8 @@ Rails.application.routes.draw do + resources :agents do + resources :events, only: [:index, :new, :create, :destroy] + end + resources :dispositions - resources :events, only: [:index, :new, :create, :destroy] root 'events#index' end |
