Permalink
Browse files

crud for current year

  • Loading branch information...
1 parent a4d7dff commit 41252f6d2eba29ccf4b6e359af6e788537371ed6 Andrew Nguyen committed May 2, 2012
Showing with 15 additions and 1 deletion.
  1. +3 −0 config/routes.rb
  2. +7 −1 db/schema.rb
  3. +3 −0 features/support/paths.rb
  4. +2 −0 spec/factories.rb
View
@@ -38,6 +38,9 @@
get 'admin_unit_index' => 'admin_unit#index', :as => 'admin_unit_index'
put 'admin_unit_update' => 'admin_unit#update', :as => 'admin_unit_update'
+ get 'current_year_index' => 'current_year#index', :as => 'current_year_index'
+ put 'current_year_update' => 'current_year#update', :as => 'current_year_update'
+
end
scope 'nurse/:nurse_id/' do
View
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20120430093026) do
+ActiveRecord::Schema.define(:version => 20120502010706) do
create_table "admins", :force => true do |t|
end
@@ -21,6 +21,12 @@
t.integer "unit_id"
end
+ create_table "current_years", :force => true do |t|
+ t.integer "year"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
create_table "events", :force => true do |t|
t.string "name"
t.datetime "start_at"
@@ -71,6 +71,9 @@ def path_to(page_name)
when /^the Associate Units page/
admin_unit_index_path
+ when /^the Current Year page/
+ current_year_index_path
+
when /^the Add Vacation page for "([^"]*)"$/
new_nurse_calendar_path(Nurse.find_by_name($1))
View
@@ -52,4 +52,6 @@
shift 'PMs'
unit
end
+
+
end

0 comments on commit 41252f6

Please sign in to comment.