Permalink
Browse files

add routes to take care of lccplacement prefix and add controller hom…

…e to get to index from lccplacement and add get_current_results to write placementscores.csv file for crontab
  • Loading branch information...
1 parent 9338e23 commit f006127ee16b2839b7e2639c28e5d6aa08d7429c @billgriffiths committed Feb 25, 2012
@@ -8,7 +8,7 @@ class ApplicationController < ActionController::Base
before_filter :authorize_access, :except => [:get_test, :get_next_test, :find_next_test_in_sequence, :show_test,
:score, :student_login2, :student_intro, :student_logout, :staff_login, :create_session,
:authorize_testing_session, :get_subsession_results, :resume, :student_resume_test, :authorize_resume_test,
- :session_results, :get_sequence, :update_answers, :individual_tests, :get_start_test, :get_individual_test]
+ :session_results, :get_sequence, :update_answers, :individual_tests, :get_start_test, :get_individual_test, :index]
# layout proc{ |c| c.request.xhr? ? false : "application" }
@@ -338,8 +338,8 @@ def get_current_results
destination_file = "placementscores.csv"
# destination_file = "placementscores.csv"+current_time.strftime("%Y%m%d.%H%M%S")
# file_name = "/Library/WebServer/aux_files/"+destination_file
-# file_name = "/home/deploy/"+destination_file
- file_name = "/users/bill/"+destination_file
+ file_name = "/home/deploy/"+destination_file
+# file_name = "/users/bill/"+destination_file
#write file, set processed field of these sessions and offer to send them to Banner
File.open(file_name, 'w') {|f| f.write(@student_records) }
# Kernel.system("scp",file_name,"mathplac@daedalus.cocc.edu:"+destination_file)
View
@@ -20,4 +20,6 @@
# Install the default route as the lowest priority.
map.connect ':controller/:action/:id.:format'
map.connect ':controller/:action/:id'
+ map.connect '/lccplacement/:controller/:action/:id'
+ map.connect '/lccplacement/', :controller => 'home', :action => 'index'
end
View
@@ -246,7 +246,7 @@
<h3><a href="/README" onclick="about(); return false">About this testing system</a></h3>
<div id="about-content" style="display: none">
<table>
- <tr><td>This application is in development. This is a place holder.<p/> Contact Bill Griffiths billgriffiths@gmail.com<br/></td></tr> <tr><td> <a href="/README" onclick="about(); return false">(close)</a>
+ <tr><td>For information about this application<p/> contact Bill Griffiths billgriffiths@gmail.com<br/></td></tr> <tr><td> <a href="/README" onclick="about(); return false">(close)</a>
</td></tr>
</table>
</div>

0 comments on commit f006127

Please sign in to comment.