Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

crud for current year

  • Loading branch information...
commit 41252f6d2eba29ccf4b6e359af6e788537371ed6 1 parent a4d7dff
authored May 01, 2012
3  config/routes.rb
@@ -38,6 +38,9 @@
38 38
     get 'admin_unit_index' => 'admin_unit#index', :as => 'admin_unit_index'
39 39
     put 'admin_unit_update' => 'admin_unit#update', :as => 'admin_unit_update'
40 40
 
  41
+    get 'current_year_index' => 'current_year#index', :as => 'current_year_index'
  42
+    put 'current_year_update' => 'current_year#update', :as => 'current_year_update'
  43
+
41 44
   end
42 45
 
43 46
   scope 'nurse/:nurse_id/' do
8  db/schema.rb
@@ -11,7 +11,7 @@
11 11
 #
12 12
 # It's strongly recommended to check this file into your version control system.
13 13
 
14  
-ActiveRecord::Schema.define(:version => 20120430093026) do
  14
+ActiveRecord::Schema.define(:version => 20120502010706) do
15 15
 
16 16
   create_table "admins", :force => true do |t|
17 17
   end
@@ -21,6 +21,12 @@
21 21
     t.integer "unit_id"
22 22
   end
23 23
 
  24
+  create_table "current_years", :force => true do |t|
  25
+    t.integer  "year"
  26
+    t.datetime "created_at"
  27
+    t.datetime "updated_at"
  28
+  end
  29
+
24 30
   create_table "events", :force => true do |t|
25 31
     t.string   "name"
26 32
     t.datetime "start_at"
3  features/support/paths.rb
@@ -71,6 +71,9 @@ def path_to(page_name)
71 71
     when /^the Associate Units page/
72 72
       admin_unit_index_path
73 73
 
  74
+    when /^the Current Year page/
  75
+      current_year_index_path
  76
+
74 77
     when /^the Add Vacation page for "([^"]*)"$/
75 78
       new_nurse_calendar_path(Nurse.find_by_name($1))
76 79
 
2  spec/factories.rb
@@ -52,4 +52,6 @@
52 52
     shift 'PMs'
53 53
     unit
54 54
   end
  55
+
  56
+
55 57
 end

0 notes on commit 41252f6

Please sign in to comment.
Something went wrong with that request. Please try again.