Skip to content

Instantly share code, notes, and snippets.

@RussPete
Created July 9, 2012 05:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RussPete/3074287 to your computer and use it in GitHub Desktop.
Save RussPete/3074287 to your computer and use it in GitHub Desktop.
route paths not working in a helper module
module ClientsFormsHelper
# works with setupClientFormLink() in application-js.js
def link_to_clients_form_options(rec_type, rec_id, able_type, able_id, options)
name = ''
route = ''
funct = ''
popup = ''
css_class = ''
form_class = case rec_type
when :client_form
'edit_form'
when :pusers_todo
''
when :activity
'view_activity'
end
case able_type
when Client.new.class.name
name = 'Client Information'
name = options[:name]
route = (able_id.nil? ? new_client_path : edit_client_path(able_id))
funct = 'prepClients'
popup = '#client_info_dialog'
css_class = form_class
when ClientsAssessment::CLIENT_ASSESSMENT_FORM
name = 'Psychological History'
name = options[:name]
route = personal_edit_clients_assessment_path(able_id)
funct = 'ass.editPersonal'
popup = '#personal_edit_dialog'
css_class = form_class
when ClientsAssessment::CLIENT_ASSESSMENT_MEDICAL_FORM
name = 'Medical Health'
name = options[:name]
route = "/clients_assessment/#{able_id}/medical_edit"
#route = medical_edit_clients_assessment_path(able_id)
route = edit_clients_assessment_path(able_id)
funct = 'ass.editMedical'
popup = '#medical_edit_dialog'
css_class = form_class
when ClientsAssessment::CLIENT_ASSESSMENT_MENTAL_FORM
name = 'Mental Health'
name = options[:name]
route = personal_edit_clients_assessment_path(able_id)
#route = mental_health_edit_clients_assessment_path(able_id)
funct = 'ass.editMentalHealth'
popup = '#mental_health_edit_dialog'
css_class = form_class
else # signature forms
case rec_type
when :client_form
name = options[:name]
route = edit_clients_form_path(rec_id)
css_class = form_class
end
end
options.merge({:name => name, :url => route, :funct => funct, :popup => popup, :class => css_class})
end
end
(in /home/russ/Work/pm)
activities GET /activities(.:format) {:action=>"index", :controller=>"activities"}
POST /activities(.:format) {:action=>"create", :controller=>"activities"}
new_activity GET /activities/new(.:format) {:action=>"new", :controller=>"activities"}
edit_activity GET /activities/:id/edit(.:format) {:action=>"edit", :controller=>"activities"}
activity GET /activities/:id(.:format) {:action=>"show", :controller=>"activities"}
PUT /activities/:id(.:format) {:action=>"update", :controller=>"activities"}
DELETE /activities/:id(.:format) {:action=>"destroy", :controller=>"activities"}
complete_pusers_todo PUT /pusers_todos/:id/complete(.:format) {:action=>"complete", :controller=>"pusers_todos"}
search_pusers_todos GET /pusers_todos/search(.:format) {:action=>"search", :controller=>"pusers_todos"}
pusers_todos GET /pusers_todos(.:format) {:action=>"index", :controller=>"pusers_todos"}
POST /pusers_todos(.:format) {:action=>"create", :controller=>"pusers_todos"}
new_pusers_todo GET /pusers_todos/new(.:format) {:action=>"new", :controller=>"pusers_todos"}
edit_pusers_todo GET /pusers_todos/:id/edit(.:format) {:action=>"edit", :controller=>"pusers_todos"}
pusers_todo GET /pusers_todos/:id(.:format) {:action=>"show", :controller=>"pusers_todos"}
PUT /pusers_todos/:id(.:format) {:action=>"update", :controller=>"pusers_todos"}
DELETE /pusers_todos/:id(.:format) {:action=>"destroy", :controller=>"pusers_todos"}
hcfa_1500_powerbox GET /powerbox/:id/hcfa_1500(.:format) {:action=>"hcfa_1500", :controller=>"powerbox"}
powerbox_index GET /powerbox(.:format) {:action=>"index", :controller=>"powerbox"}
POST /powerbox(.:format) {:action=>"create", :controller=>"powerbox"}
new_powerbox GET /powerbox/new(.:format) {:action=>"new", :controller=>"powerbox"}
edit_powerbox GET /powerbox/:id/edit(.:format) {:action=>"edit", :controller=>"powerbox"}
powerbox GET /powerbox/:id(.:format) {:action=>"show", :controller=>"powerbox"}
PUT /powerbox/:id(.:format) {:action=>"update", :controller=>"powerbox"}
DELETE /powerbox/:id(.:format) {:action=>"destroy", :controller=>"powerbox"}
practice_ledger_billing_index GET /billing/practice_ledger(.:format) {:action=>"practice_ledger", :controller=>"billing"}
statement_settings_billing_index GET /billing/statement_settings(.:format) {:action=>"statement_settings", :controller=>"billing"}
assessment_substance_abuses GET /assessment_substance_abuses(.:format) {:action=>"index", :controller=>"assessment_substance_abuses"}
POST /assessment_substance_abuses(.:format) {:action=>"create", :controller=>"assessment_substance_abuses"}
new_assessment_substance_abus GET /assessment_substance_abuses/new(.:format) {:action=>"new", :controller=>"assessment_substance_abuses"}
edit_assessment_substance_abus GET /assessment_substance_abuses/:id/edit(.:format) {:action=>"edit", :controller=>"assessment_substance_abuses"}
assessment_substance_abus GET /assessment_substance_abuses/:id(.:format) {:action=>"show", :controller=>"assessment_substance_abuses"}
PUT /assessment_substance_abuses/:id(.:format) {:action=>"update", :controller=>"assessment_substance_abuses"}
DELETE /assessment_substance_abuses/:id(.:format) {:action=>"destroy", :controller=>"assessment_substance_abuses"}
medical_edit_clients_assessment GET /clients_assessments/:id/medical_edit(.:format) {:action=>"medical_edit", :controller=>"clients_assessments"}
mental_health_edit_clients_assessment GET /clients_assessments/:id/mental_health_edit(.:format) {:action=>"mental_health_edit", :controller=>"clients_assessments"}
personal_edit_clients_assessment GET /clients_assessments/:id/personal_edit(.:format) {:action=>"personal_edit", :controller=>"clients_assessments"}
clients_assessments GET /clients_assessments(.:format) {:action=>"index", :controller=>"clients_assessments"}
POST /clients_assessments(.:format) {:action=>"create", :controller=>"clients_assessments"}
new_clients_assessment GET /clients_assessments/new(.:format) {:action=>"new", :controller=>"clients_assessments"}
edit_clients_assessment GET /clients_assessments/:id/edit(.:format) {:action=>"edit", :controller=>"clients_assessments"}
clients_assessment GET /clients_assessments/:id(.:format) {:action=>"show", :controller=>"clients_assessments"}
PUT /clients_assessments/:id(.:format) {:action=>"update", :controller=>"clients_assessments"}
DELETE /clients_assessments/:id(.:format) {:action=>"destroy", :controller=>"clients_assessments"}
clients_insurance_auths POST /clients_insurance_auths(.:format) {:action=>"create", :controller=>"clients_insurance_auths"}
new_clients_insurance_auths GET /clients_insurance_auths/new(.:format) {:action=>"new", :controller=>"clients_insurance_auths"}
edit_clients_insurance_auths GET /clients_insurance_auths/edit(.:format) {:action=>"edit", :controller=>"clients_insurance_auths"}
GET /clients_insurance_auths(.:format) {:action=>"show", :controller=>"clients_insurance_auths"}
PUT /clients_insurance_auths(.:format) {:action=>"update", :controller=>"clients_insurance_auths"}
DELETE /clients_insurance_auths(.:format) {:action=>"destroy", :controller=>"clients_insurance_auths"}
search_clients_medications GET /clients_medications/search(.:format) {:action=>"search", :controller=>"clients_medications"}
clients_medications GET /clients_medications(.:format) {:action=>"index", :controller=>"clients_medications"}
POST /clients_medications(.:format) {:action=>"create", :controller=>"clients_medications"}
new_clients_medication GET /clients_medications/new(.:format) {:action=>"new", :controller=>"clients_medications"}
edit_clients_medication GET /clients_medications/:id/edit(.:format) {:action=>"edit", :controller=>"clients_medications"}
clients_medication GET /clients_medications/:id(.:format) {:action=>"show", :controller=>"clients_medications"}
PUT /clients_medications/:id(.:format) {:action=>"update", :controller=>"clients_medications"}
DELETE /clients_medications/:id(.:format) {:action=>"destroy", :controller=>"clients_medications"}
clients_attachments GET /clients_attachments(.:format) {:action=>"index", :controller=>"clients_attachments"}
POST /clients_attachments(.:format) {:action=>"create", :controller=>"clients_attachments"}
new_clients_attachment GET /clients_attachments/new(.:format) {:action=>"new", :controller=>"clients_attachments"}
edit_clients_attachment GET /clients_attachments/:id/edit(.:format) {:action=>"edit", :controller=>"clients_attachments"}
clients_attachment GET /clients_attachments/:id(.:format) {:action=>"show", :controller=>"clients_attachments"}
PUT /clients_attachments/:id(.:format) {:action=>"update", :controller=>"clients_attachments"}
DELETE /clients_attachments/:id(.:format) {:action=>"destroy", :controller=>"clients_attachments"}
clients_forms GET /clients_forms(.:format) {:action=>"index", :controller=>"clients_forms"}
POST /clients_forms(.:format) {:action=>"create", :controller=>"clients_forms"}
new_clients_form GET /clients_forms/new(.:format) {:action=>"new", :controller=>"clients_forms"}
edit_clients_form GET /clients_forms/:id/edit(.:format) {:action=>"edit", :controller=>"clients_forms"}
clients_form GET /clients_forms/:id(.:format) {:action=>"show", :controller=>"clients_forms"}
PUT /clients_forms/:id(.:format) {:action=>"update", :controller=>"clients_forms"}
DELETE /clients_forms/:id(.:format) {:action=>"destroy", :controller=>"clients_forms"}
clients_hcfas GET /clients_hcfas(.:format) {:action=>"index", :controller=>"clients_hcfas"}
POST /clients_hcfas(.:format) {:action=>"create", :controller=>"clients_hcfas"}
new_clients_hcfa GET /clients_hcfas/new(.:format) {:action=>"new", :controller=>"clients_hcfas"}
edit_clients_hcfa GET /clients_hcfas/:id/edit(.:format) {:action=>"edit", :controller=>"clients_hcfas"}
clients_hcfa GET /clients_hcfas/:id(.:format) {:action=>"show", :controller=>"clients_hcfas"}
PUT /clients_hcfas/:id(.:format) {:action=>"update", :controller=>"clients_hcfas"}
DELETE /clients_hcfas/:id(.:format) {:action=>"destroy", :controller=>"clients_hcfas"}
problems_clients_tplans GET /clients_tplans/problems(.:format) {:action=>"problems", :controller=>"clients_tplans"}
definitions_clients_tplans GET /clients_tplans/definitions(.:format) {:action=>"definitions", :controller=>"clients_tplans"}
goals_clients_tplans GET /clients_tplans/goals(.:format) {:action=>"goals", :controller=>"clients_tplans"}
criteria_clients_tplans GET /clients_tplans/criteria(.:format) {:action=>"criteria", :controller=>"clients_tplans"}
objectives_clients_tplans GET /clients_tplans/objectives(.:format) {:action=>"objectives", :controller=>"clients_tplans"}
homeworks_clients_tplans GET /clients_tplans/homeworks(.:format) {:action=>"homeworks", :controller=>"clients_tplans"}
interventions_clients_tplans GET /clients_tplans/interventions(.:format) {:action=>"interventions", :controller=>"clients_tplans"}
tests_clients_tplans GET /clients_tplans/tests(.:format) {:action=>"tests", :controller=>"clients_tplans"}
clients_tplans GET /clients_tplans(.:format) {:action=>"index", :controller=>"clients_tplans"}
POST /clients_tplans(.:format) {:action=>"create", :controller=>"clients_tplans"}
new_clients_tplan GET /clients_tplans/new(.:format) {:action=>"new", :controller=>"clients_tplans"}
edit_clients_tplan GET /clients_tplans/:id/edit(.:format) {:action=>"edit", :controller=>"clients_tplans"}
clients_tplan GET /clients_tplans/:id(.:format) {:action=>"show", :controller=>"clients_tplans"}
PUT /clients_tplans/:id(.:format) {:action=>"update", :controller=>"clients_tplans"}
DELETE /clients_tplans/:id(.:format) {:action=>"destroy", :controller=>"clients_tplans"}
clients_tplan_definitions GET /clients_tplan_definitions(.:format) {:action=>"index", :controller=>"clients_tplan_definitions"}
POST /clients_tplan_definitions(.:format) {:action=>"create", :controller=>"clients_tplan_definitions"}
new_clients_tplan_definition GET /clients_tplan_definitions/new(.:format) {:action=>"new", :controller=>"clients_tplan_definitions"}
edit_clients_tplan_definition GET /clients_tplan_definitions/:id/edit(.:format) {:action=>"edit", :controller=>"clients_tplan_definitions"}
clients_tplan_definition GET /clients_tplan_definitions/:id(.:format) {:action=>"show", :controller=>"clients_tplan_definitions"}
PUT /clients_tplan_definitions/:id(.:format) {:action=>"update", :controller=>"clients_tplan_definitions"}
DELETE /clients_tplan_definitions/:id(.:format) {:action=>"destroy", :controller=>"clients_tplan_definitions"}
search_clients_tplan_homeworks GET /clients_tplan_homeworks/search(.:format) {:action=>"search", :controller=>"clients_tplan_homeworks"}
clients_tplan_homeworks GET /clients_tplan_homeworks(.:format) {:action=>"index", :controller=>"clients_tplan_homeworks"}
POST /clients_tplan_homeworks(.:format) {:action=>"create", :controller=>"clients_tplan_homeworks"}
new_clients_tplan_homework GET /clients_tplan_homeworks/new(.:format) {:action=>"new", :controller=>"clients_tplan_homeworks"}
edit_clients_tplan_homework GET /clients_tplan_homeworks/:id/edit(.:format) {:action=>"edit", :controller=>"clients_tplan_homeworks"}
clients_tplan_homework GET /clients_tplan_homeworks/:id(.:format) {:action=>"show", :controller=>"clients_tplan_homeworks"}
PUT /clients_tplan_homeworks/:id(.:format) {:action=>"update", :controller=>"clients_tplan_homeworks"}
DELETE /clients_tplan_homeworks/:id(.:format) {:action=>"destroy", :controller=>"clients_tplan_homeworks"}
clients_tplan_problems GET /clients_tplan_problems(.:format) {:action=>"index", :controller=>"clients_tplan_problems"}
POST /clients_tplan_problems(.:format) {:action=>"create", :controller=>"clients_tplan_problems"}
new_clients_tplan_problem GET /clients_tplan_problems/new(.:format) {:action=>"new", :controller=>"clients_tplan_problems"}
edit_clients_tplan_problem GET /clients_tplan_problems/:id/edit(.:format) {:action=>"edit", :controller=>"clients_tplan_problems"}
clients_tplan_problem GET /clients_tplan_problems/:id(.:format) {:action=>"show", :controller=>"clients_tplan_problems"}
PUT /clients_tplan_problems/:id(.:format) {:action=>"update", :controller=>"clients_tplan_problems"}
DELETE /clients_tplan_problems/:id(.:format) {:action=>"destroy", :controller=>"clients_tplan_problems"}
initial_clients_appointment GET /clients_appointments/:id/initial(.:format) {:action=>"initial", :controller=>"clients_appointments"}
clients_appointments GET /clients_appointments(.:format) {:action=>"index", :controller=>"clients_appointments"}
POST /clients_appointments(.:format) {:action=>"create", :controller=>"clients_appointments"}
new_clients_appointment GET /clients_appointments/new(.:format) {:action=>"new", :controller=>"clients_appointments"}
edit_clients_appointment GET /clients_appointments/:id/edit(.:format) {:action=>"edit", :controller=>"clients_appointments"}
clients_appointment GET /clients_appointments/:id(.:format) {:action=>"show", :controller=>"clients_appointments"}
PUT /clients_appointments/:id(.:format) {:action=>"update", :controller=>"clients_appointments"}
DELETE /clients_appointments/:id(.:format) {:action=>"destroy", :controller=>"clients_appointments"}
pages_choose GET /pages/choose(.:format) {:controller=>"pages", :action=>"choose"}
pages_chosen POST /pages/chosen(.:format) {:controller=>"pages", :action=>"chosen"}
pages_agree GET /pages/agree(.:format) {:controller=>"pages", :action=>"agree"}
pages_agreed POST /pages/agreed(.:format) {:controller=>"pages", :action=>"agreed"}
admin_apex GET /admin/apex(.:format) {:controller=>"admin", :action=>"apex"}
admin_apex_payers POST /admin/apex_payers(.:format) {:controller=>"admin", :action=>"apex_payers"}
GET /activities(.:format) {:action=>"index", :controller=>"activities"}
POST /activities(.:format) {:action=>"create", :controller=>"activities"}
GET /activities/new(.:format) {:action=>"new", :controller=>"activities"}
GET /activities/:id/edit(.:format) {:action=>"edit", :controller=>"activities"}
GET /activities/:id(.:format) {:action=>"show", :controller=>"activities"}
PUT /activities/:id(.:format) {:action=>"update", :controller=>"activities"}
DELETE /activities/:id(.:format) {:action=>"destroy", :controller=>"activities"}
clients_diagnoses GET /clients_diagnoses(.:format) {:action=>"index", :controller=>"clients_diagnoses"}
POST /clients_diagnoses(.:format) {:action=>"create", :controller=>"clients_diagnoses"}
new_clients_diagnosis GET /clients_diagnoses/new(.:format) {:action=>"new", :controller=>"clients_diagnoses"}
edit_clients_diagnosis GET /clients_diagnoses/:id/edit(.:format) {:action=>"edit", :controller=>"clients_diagnoses"}
clients_diagnosis GET /clients_diagnoses/:id(.:format) {:action=>"show", :controller=>"clients_diagnoses"}
PUT /clients_diagnoses/:id(.:format) {:action=>"update", :controller=>"clients_diagnoses"}
DELETE /clients_diagnoses/:id(.:format) {:action=>"destroy", :controller=>"clients_diagnoses"}
clients_insurances GET /clients_insurances(.:format) {:action=>"index", :controller=>"clients_insurances"}
POST /clients_insurances(.:format) {:action=>"create", :controller=>"clients_insurances"}
new_clients_insurance GET /clients_insurances/new(.:format) {:action=>"new", :controller=>"clients_insurances"}
edit_clients_insurance GET /clients_insurances/:id/edit(.:format) {:action=>"edit", :controller=>"clients_insurances"}
clients_insurance GET /clients_insurances/:id(.:format) {:action=>"show", :controller=>"clients_insurances"}
PUT /clients_insurances/:id(.:format) {:action=>"update", :controller=>"clients_insurances"}
DELETE /clients_insurances/:id(.:format) {:action=>"destroy", :controller=>"clients_insurances"}
clients_uploads GET /clients_uploads(.:format) {:action=>"index", :controller=>"clients_uploads"}
POST /clients_uploads(.:format) {:action=>"create", :controller=>"clients_uploads"}
new_clients_upload GET /clients_uploads/new(.:format) {:action=>"new", :controller=>"clients_uploads"}
edit_clients_upload GET /clients_uploads/:id/edit(.:format) {:action=>"edit", :controller=>"clients_uploads"}
clients_upload GET /clients_uploads/:id(.:format) {:action=>"show", :controller=>"clients_uploads"}
PUT /clients_uploads/:id(.:format) {:action=>"update", :controller=>"clients_uploads"}
DELETE /clients_uploads/:id(.:format) {:action=>"destroy", :controller=>"clients_uploads"}
day_to_day_index GET /day_to_day(.:format) {:action=>"index", :controller=>"day_to_day"}
POST /day_to_day(.:format) {:action=>"create", :controller=>"day_to_day"}
new_day_to_day GET /day_to_day/new(.:format) {:action=>"new", :controller=>"day_to_day"}
edit_day_to_day GET /day_to_day/:id/edit(.:format) {:action=>"edit", :controller=>"day_to_day"}
day_to_day GET /day_to_day/:id(.:format) {:action=>"show", :controller=>"day_to_day"}
PUT /day_to_day/:id(.:format) {:action=>"update", :controller=>"day_to_day"}
DELETE /day_to_day/:id(.:format) {:action=>"destroy", :controller=>"day_to_day"}
diagnosis_codes GET /diagnosis_codes(.:format) {:action=>"index", :controller=>"diagnosis_codes"}
POST /diagnosis_codes(.:format) {:action=>"create", :controller=>"diagnosis_codes"}
new_diagnosis_code GET /diagnosis_codes/new(.:format) {:action=>"new", :controller=>"diagnosis_codes"}
edit_diagnosis_code GET /diagnosis_codes/:id/edit(.:format) {:action=>"edit", :controller=>"diagnosis_codes"}
diagnosis_code GET /diagnosis_codes/:id(.:format) {:action=>"show", :controller=>"diagnosis_codes"}
PUT /diagnosis_codes/:id(.:format) {:action=>"update", :controller=>"diagnosis_codes"}
DELETE /diagnosis_codes/:id(.:format) {:action=>"destroy", :controller=>"diagnosis_codes"}
cancel_create_practices GET /practices/cancel_create(.:format) {:action=>"cancel_create", :controller=>"practices"}
info_practices GET /practices/info(.:format) {:action=>"info", :controller=>"practices"}
providers_ins_ids_practices GET /practices/providers_ins_ids(.:format) {:action=>"providers_ins_ids", :controller=>"practices"}
practices GET /practices(.:format) {:action=>"index", :controller=>"practices"}
POST /practices(.:format) {:action=>"create", :controller=>"practices"}
new_practice GET /practices/new(.:format) {:action=>"new", :controller=>"practices"}
edit_practice GET /practices/:id/edit(.:format) {:action=>"edit", :controller=>"practices"}
practice GET /practices/:id(.:format) {:action=>"show", :controller=>"practices"}
PUT /practices/:id(.:format) {:action=>"update", :controller=>"practices"}
DELETE /practices/:id(.:format) {:action=>"destroy", :controller=>"practices"}
practices_auto_todos GET /practices_auto_todos(.:format) {:action=>"index", :controller=>"practices_auto_todos"}
POST /practices_auto_todos(.:format) {:action=>"create", :controller=>"practices_auto_todos"}
new_practices_auto_todo GET /practices_auto_todos/new(.:format) {:action=>"new", :controller=>"practices_auto_todos"}
edit_practices_auto_todo GET /practices_auto_todos/:id/edit(.:format) {:action=>"edit", :controller=>"practices_auto_todos"}
practices_auto_todo GET /practices_auto_todos/:id(.:format) {:action=>"show", :controller=>"practices_auto_todos"}
PUT /practices_auto_todos/:id(.:format) {:action=>"update", :controller=>"practices_auto_todos"}
DELETE /practices_auto_todos/:id(.:format) {:action=>"destroy", :controller=>"practices_auto_todos"}
search_practices_users GET /practices_users/search(.:format) {:action=>"search", :controller=>"practices_users"}
email_practices_user POST /practices_users/:id/email(.:format) {:action=>"email", :controller=>"practices_users"}
fee_amount_practices_user GET /practices_users/:id/fee_amount(.:format) {:action=>"fee_amount", :controller=>"practices_users"}
practices_users GET /practices_users(.:format) {:action=>"index", :controller=>"practices_users"}
POST /practices_users(.:format) {:action=>"create", :controller=>"practices_users"}
new_practices_user GET /practices_users/new(.:format) {:action=>"new", :controller=>"practices_users"}
edit_practices_user GET /practices_users/:id/edit(.:format) {:action=>"edit", :controller=>"practices_users"}
practices_user GET /practices_users/:id(.:format) {:action=>"show", :controller=>"practices_users"}
PUT /practices_users/:id(.:format) {:action=>"update", :controller=>"practices_users"}
DELETE /practices_users/:id(.:format) {:action=>"destroy", :controller=>"practices_users"}
autocomplete_client_search_field_clients GET /clients/autocomplete_client_search_field(.:format) {:action=>"autocomplete_client_search_field", :controller=>"clients"}
add_activity_client GET /clients/:id/add_activity(.:format) {:action=>"add_activity", :controller=>"clients"}
add_form_client GET /clients/:id/add_form(.:format) {:action=>"add_form", :controller=>"clients"}
attachment_client GET /clients/:id/attachment(.:format) {:action=>"attachment", :controller=>"clients"}
billing_client GET /clients/:id/billing(.:format) {:action=>"billing", :controller=>"clients"}
contacts_client GET /clients/:id/contacts(.:format) {:action=>"contacts", :controller=>"clients"}
forms_client GET /clients/:id/forms(.:format) {:action=>"forms", :controller=>"clients"}
ins_info_client GET /clients/:id/ins_info(.:format) {:action=>"ins_info", :controller=>"clients"}
appointments_client GET /clients/:id/appointments(.:format) {:action=>"appointments", :controller=>"clients"}
clients GET /clients(.:format) {:action=>"index", :controller=>"clients"}
POST /clients(.:format) {:action=>"create", :controller=>"clients"}
new_client GET /clients/new(.:format) {:action=>"new", :controller=>"clients"}
edit_client GET /clients/:id/edit(.:format) {:action=>"edit", :controller=>"clients"}
client GET /clients/:id(.:format) {:action=>"show", :controller=>"clients"}
PUT /clients/:id(.:format) {:action=>"update", :controller=>"clients"}
DELETE /clients/:id(.:format) {:action=>"destroy", :controller=>"clients"}
diagnosis_clients_clinical_note GET /clients_clinical_notes/:id/diagnosis(.:format) {:action=>"diagnosis", :controller=>"clients_clinical_notes"}
clients_clinical_notes GET /clients_clinical_notes(.:format) {:action=>"index", :controller=>"clients_clinical_notes"}
POST /clients_clinical_notes(.:format) {:action=>"create", :controller=>"clients_clinical_notes"}
new_clients_clinical_note GET /clients_clinical_notes/new(.:format) {:action=>"new", :controller=>"clients_clinical_notes"}
edit_clients_clinical_note GET /clients_clinical_notes/:id/edit(.:format) {:action=>"edit", :controller=>"clients_clinical_notes"}
clients_clinical_note GET /clients_clinical_notes/:id(.:format) {:action=>"show", :controller=>"clients_clinical_notes"}
PUT /clients_clinical_notes/:id(.:format) {:action=>"update", :controller=>"clients_clinical_notes"}
DELETE /clients_clinical_notes/:id(.:format) {:action=>"destroy", :controller=>"clients_clinical_notes"}
clients_receivables GET /clients_receivables(.:format) {:action=>"index", :controller=>"clients_receivables"}
POST /clients_receivables(.:format) {:action=>"create", :controller=>"clients_receivables"}
new_clients_receivable GET /clients_receivables/new(.:format) {:action=>"new", :controller=>"clients_receivables"}
edit_clients_receivable GET /clients_receivables/:id/edit(.:format) {:action=>"edit", :controller=>"clients_receivables"}
clients_receivable GET /clients_receivables/:id(.:format) {:action=>"show", :controller=>"clients_receivables"}
PUT /clients_receivables/:id(.:format) {:action=>"update", :controller=>"clients_receivables"}
DELETE /clients_receivables/:id(.:format) {:action=>"destroy", :controller=>"clients_receivables"}
contacts_clients_contact GET /clients_contacts/:id/contacts(.:format) {:action=>"contacts", :controller=>"clients_contacts"}
clients_contacts GET /clients_contacts(.:format) {:action=>"index", :controller=>"clients_contacts"}
POST /clients_contacts(.:format) {:action=>"create", :controller=>"clients_contacts"}
new_clients_contact GET /clients_contacts/new(.:format) {:action=>"new", :controller=>"clients_contacts"}
edit_clients_contact GET /clients_contacts/:id/edit(.:format) {:action=>"edit", :controller=>"clients_contacts"}
clients_contact GET /clients_contacts/:id(.:format) {:action=>"show", :controller=>"clients_contacts"}
PUT /clients_contacts/:id(.:format) {:action=>"update", :controller=>"clients_contacts"}
DELETE /clients_contacts/:id(.:format) {:action=>"destroy", :controller=>"clients_contacts"}
/client_info/:id/client_desc(.:format) {:controller=>"client_info", :action=>"client_desc"}
client_info_activity_feed /client_info/activity_feed(.:format) {:controller=>"client_info", :action=>"activity_feed"}
client_info_appointments GET /client_info/appointments(.:format) {:controller=>"client_info", :action=>"appointments"}
client_info_contacts /client_info/contacts(.:format) {:controller=>"client_info", :action=>"contacts"}
client_info_forms /client_info/forms(.:format) {:controller=>"client_info", :action=>"forms"}
client_info_info GET /client_info/info(.:format) {:controller=>"client_info", :action=>"info"}
/client_info/:id/ins_info(.:format) {:controller=>"client_info", :action=>"ins_info"}
/client_info/:id/financial_aging(.:format) {:controller=>"client_info", :action=>"financial_aging"}
client_info_new GET /client_info/new(.:format) {:controller=>"client_info", :action=>"new"}
GET /client_info/:id(.:format) {:controller=>"client_info", :action=>"show"}
clinical_record_info GET /clinical_record/info(.:format) {:controller=>"clinical_record", :action=>"info"}
treatment_plan_clinical_record GET /clinical_record/:id/treatment_plan(.:format) {:action=>"treatment_plan", :controller=>"clinical_record"}
clinical_record_index GET /clinical_record(.:format) {:action=>"show", :controller=>"clinical_record"}
GET /clinical_record(.:format) {:action=>"index", :controller=>"clinical_record"}
POST /clinical_record(.:format) {:action=>"create", :controller=>"clinical_record"}
new_clinical_record GET /clinical_record/new(.:format) {:action=>"new", :controller=>"clinical_record"}
edit_clinical_record GET /clinical_record/:id/edit(.:format) {:action=>"edit", :controller=>"clinical_record"}
clinical_record GET /clinical_record/:id(.:format) {:action=>"show", :controller=>"clinical_record"}
PUT /clinical_record/:id(.:format) {:action=>"update", :controller=>"clinical_record"}
DELETE /clinical_record/:id(.:format) {:action=>"destroy", :controller=>"clinical_record"}
calendar_index GET /calendar/index(.:format) {:controller=>"calendar", :action=>"index"}
cpt_codes GET /cpt_codes(.:format) {:action=>"index", :controller=>"cpt_codes"}
POST /cpt_codes(.:format) {:action=>"create", :controller=>"cpt_codes"}
new_cpt_code GET /cpt_codes/new(.:format) {:action=>"new", :controller=>"cpt_codes"}
edit_cpt_code GET /cpt_codes/:id/edit(.:format) {:action=>"edit", :controller=>"cpt_codes"}
cpt_code GET /cpt_codes/:id(.:format) {:action=>"show", :controller=>"cpt_codes"}
PUT /cpt_codes/:id(.:format) {:action=>"update", :controller=>"cpt_codes"}
DELETE /cpt_codes/:id(.:format) {:action=>"destroy", :controller=>"cpt_codes"}
copy_event POST /events/:id/copy(.:format) {:action=>"copy", :controller=>"events"}
events GET /events(.:format) {:action=>"index", :controller=>"events"}
POST /events(.:format) {:action=>"create", :controller=>"events"}
new_event GET /events/new(.:format) {:action=>"new", :controller=>"events"}
edit_event GET /events/:id/edit(.:format) {:action=>"edit", :controller=>"events"}
event GET /events/:id(.:format) {:action=>"show", :controller=>"events"}
PUT /events/:id(.:format) {:action=>"update", :controller=>"events"}
DELETE /events/:id(.:format) {:action=>"destroy", :controller=>"events"}
GET /calendar(.:format) {:action=>"index", :controller=>"calendar"}
insurance_plans GET /insurance_plans(.:format) {:action=>"index", :controller=>"insurance_plans"}
POST /insurance_plans(.:format) {:action=>"create", :controller=>"insurance_plans"}
new_insurance_plan GET /insurance_plans/new(.:format) {:action=>"new", :controller=>"insurance_plans"}
edit_insurance_plan GET /insurance_plans/:id/edit(.:format) {:action=>"edit", :controller=>"insurance_plans"}
insurance_plan GET /insurance_plans/:id(.:format) {:action=>"show", :controller=>"insurance_plans"}
PUT /insurance_plans/:id(.:format) {:action=>"update", :controller=>"insurance_plans"}
DELETE /insurance_plans/:id(.:format) {:action=>"destroy", :controller=>"insurance_plans"}
home_under_construction GET /home/under_construction(.:format) {:controller=>"home", :action=>"under_construction"}
options_practices_billing_closeouts PUT /practices_billing_closeouts/options(.:format) {:action=>"options", :controller=>"practices_billing_closeouts"}
practices_billing_closeouts GET /practices_billing_closeouts(.:format) {:action=>"index", :controller=>"practices_billing_closeouts"}
POST /practices_billing_closeouts(.:format) {:action=>"create", :controller=>"practices_billing_closeouts"}
new_practices_billing_closeout GET /practices_billing_closeouts/new(.:format) {:action=>"new", :controller=>"practices_billing_closeouts"}
edit_practices_billing_closeout GET /practices_billing_closeouts/:id/edit(.:format) {:action=>"edit", :controller=>"practices_billing_closeouts"}
practices_billing_closeout GET /practices_billing_closeouts/:id(.:format) {:action=>"show", :controller=>"practices_billing_closeouts"}
PUT /practices_billing_closeouts/:id(.:format) {:action=>"update", :controller=>"practices_billing_closeouts"}
DELETE /practices_billing_closeouts/:id(.:format) {:action=>"destroy", :controller=>"practices_billing_closeouts"}
practices_cpt_codes GET /practices_cpt_codes(.:format) {:action=>"index", :controller=>"practices_cpt_codes"}
POST /practices_cpt_codes(.:format) {:action=>"create", :controller=>"practices_cpt_codes"}
new_practices_cpt_code GET /practices_cpt_codes/new(.:format) {:action=>"new", :controller=>"practices_cpt_codes"}
edit_practices_cpt_code GET /practices_cpt_codes/:id/edit(.:format) {:action=>"edit", :controller=>"practices_cpt_codes"}
practices_cpt_code GET /practices_cpt_codes/:id(.:format) {:action=>"show", :controller=>"practices_cpt_codes"}
PUT /practices_cpt_codes/:id(.:format) {:action=>"update", :controller=>"practices_cpt_codes"}
DELETE /practices_cpt_codes/:id(.:format) {:action=>"destroy", :controller=>"practices_cpt_codes"}
practices_forms GET /practices_forms(.:format) {:action=>"index", :controller=>"practices_forms"}
POST /practices_forms(.:format) {:action=>"create", :controller=>"practices_forms"}
new_practices_form GET /practices_forms/new(.:format) {:action=>"new", :controller=>"practices_forms"}
edit_practices_form GET /practices_forms/:id/edit(.:format) {:action=>"edit", :controller=>"practices_forms"}
practices_form GET /practices_forms/:id(.:format) {:action=>"show", :controller=>"practices_forms"}
PUT /practices_forms/:id(.:format) {:action=>"update", :controller=>"practices_forms"}
DELETE /practices_forms/:id(.:format) {:action=>"destroy", :controller=>"practices_forms"}
update_session PUT /sessions/:id/update(.:format) {:controller=>"sessions", :action=>"update"}
new_user_session GET /users/sign_in(.:format) {:action=>"new", :controller=>"sessions"}
user_session POST /users/sign_in(.:format) {:action=>"create", :controller=>"sessions"}
destroy_user_session DELETE /users/sign_out(.:format) {:action=>"destroy", :controller=>"sessions"}
user_password POST /users/password(.:format) {:action=>"create", :controller=>"devise/passwords"}
new_user_password GET /users/password/new(.:format) {:action=>"new", :controller=>"devise/passwords"}
edit_user_password GET /users/password/edit(.:format) {:action=>"edit", :controller=>"devise/passwords"}
PUT /users/password(.:format) {:action=>"update", :controller=>"devise/passwords"}
cancel_user_registration GET /users/cancel(.:format) {:action=>"cancel", :controller=>"registrations"}
user_registration POST /users(.:format) {:action=>"create", :controller=>"registrations"}
new_user_registration GET /users/sign_up(.:format) {:action=>"new", :controller=>"registrations"}
edit_user_registration GET /users/edit(.:format) {:action=>"edit", :controller=>"registrations"}
PUT /users(.:format) {:action=>"update", :controller=>"registrations"}
DELETE /users(.:format) {:action=>"destroy", :controller=>"registrations"}
new_user_session GET /users/sign_in(.:format) {:action=>"new", :controller=>"devise/sessions"}
POST /users/sign_in(.:format) {:action=>"create", :controller=>"devise/sessions"}
destroy_user_session DELETE /users/sign_out(.:format) {:action=>"destroy", :controller=>"devise/sessions"}
POST /users/password(.:format) {:action=>"create", :controller=>"devise/passwords"}
GET /users/password/new(.:format) {:action=>"new", :controller=>"devise/passwords"}
GET /users/password/edit(.:format) {:action=>"edit", :controller=>"devise/passwords"}
PUT /users/password(.:format) {:action=>"update", :controller=>"devise/passwords"}
GET /users/cancel(.:format) {:action=>"cancel", :controller=>"devise/registrations"}
POST /users(.:format) {:action=>"create", :controller=>"devise/registrations"}
GET /users/sign_up(.:format) {:action=>"new", :controller=>"devise/registrations"}
GET /users/edit(.:format) {:action=>"edit", :controller=>"devise/registrations"}
PUT /users(.:format) {:action=>"update", :controller=>"devise/registrations"}
DELETE /users(.:format) {:action=>"destroy", :controller=>"devise/registrations"}
sign_out GET /sign_out(.:format) {:action=>"destroy", :controller=>"devise/sessions"}
new_user_session GET /users/sign_in(.:format) {:action=>"new", :controller=>"devise/sessions"}
POST /users/sign_in(.:format) {:action=>"create", :controller=>"devise/sessions"}
destroy_user_session DELETE /users/sign_out(.:format) {:action=>"destroy", :controller=>"devise/sessions"}
POST /users/password(.:format) {:action=>"create", :controller=>"devise/passwords"}
GET /users/password/new(.:format) {:action=>"new", :controller=>"devise/passwords"}
GET /users/password/edit(.:format) {:action=>"edit", :controller=>"devise/passwords"}
PUT /users/password(.:format) {:action=>"update", :controller=>"devise/passwords"}
GET /users/cancel(.:format) {:action=>"cancel", :controller=>"devise/registrations"}
POST /users(.:format) {:action=>"create", :controller=>"devise/registrations"}
GET /users/sign_up(.:format) {:action=>"new", :controller=>"devise/registrations"}
GET /users/edit(.:format) {:action=>"edit", :controller=>"devise/registrations"}
PUT /users(.:format) {:action=>"update", :controller=>"devise/registrations"}
DELETE /users(.:format) {:action=>"destroy", :controller=>"devise/registrations"}
relationships GET /relationships(.:format) {:action=>"index", :controller=>"relationships"}
POST /relationships(.:format) {:action=>"create", :controller=>"relationships"}
new_relationship GET /relationships/new(.:format) {:action=>"new", :controller=>"relationships"}
edit_relationship GET /relationships/:id/edit(.:format) {:action=>"edit", :controller=>"relationships"}
relationship GET /relationships/:id(.:format) {:action=>"show", :controller=>"relationships"}
PUT /relationships/:id(.:format) {:action=>"update", :controller=>"relationships"}
DELETE /relationships/:id(.:format) {:action=>"destroy", :controller=>"relationships"}
practices_form_edit_setting GET /settings/:id/practices_form_edit(.:format) {:action=>"practices_form_edit", :controller=>"settings"}
practices_form_view_setting GET /settings/:id/practices_form_view(.:format) {:action=>"practices_form_view", :controller=>"settings"}
practices_auto_todos_setting GET /settings/:id/practices_auto_todos(.:format) {:action=>"practices_auto_todos", :controller=>"settings"}
pusers_fees_setting GET /settings/:id/pusers_fees(.:format) {:action=>"pusers_fees", :controller=>"settings"}
pusers_med_frequencies_setting GET /settings/:id/pusers_med_frequencies(.:format) {:action=>"pusers_med_frequencies", :controller=>"settings"}
pusers_tplan_homeworks_setting GET /settings/:id/pusers_tplan_homeworks(.:format) {:action=>"pusers_tplan_homeworks", :controller=>"settings"}
billing_closeout_settings GET /settings/billing_closeout(.:format) {:action=>"billing_closeout", :controller=>"settings"}
billing_fees_settings GET /settings/billing_fees(.:format) {:action=>"billing_fees", :controller=>"settings"}
client_portal_instructions_settings GET /settings/client_portal_instructions(.:format) {:action=>"client_portal_instructions", :controller=>"settings"}
practices_activity_types_settings GET /settings/practices_activity_types(.:format) {:action=>"practices_activity_types", :controller=>"settings"}
practices_billing_types_settings GET /settings/practices_billing_types(.:format) {:action=>"practices_billing_types", :controller=>"settings"}
practices_checkboxes_settings GET /settings/practices_checkboxes(.:format) {:action=>"practices_checkboxes", :controller=>"settings"}
practices_checkboxes_texts_settings GET /settings/practices_checkboxes_texts(.:format) {:action=>"practices_checkboxes_texts", :controller=>"settings"}
practices_cpt_codes_settings GET /settings/practices_cpt_codes(.:format) {:action=>"practices_cpt_codes", :controller=>"settings"}
practices_forms_settings GET /settings/practices_forms(.:format) {:action=>"practices_forms", :controller=>"settings"}
practices_fee_schedules_settings GET /settings/practices_fee_schedules(.:format) {:action=>"practices_fee_schedules", :controller=>"settings"}
settings GET /settings(.:format) {:action=>"index", :controller=>"settings"}
checkout_statement GET /statements/:id/checkout(.:format) {:action=>"checkout", :controller=>"statements"}
close_out_statement GET /statements/:id/close_out(.:format) {:action=>"close_out", :controller=>"statements"}
current_statement GET /statements/:id/current(.:format) {:action=>"current", :controller=>"statements"}
current_all_statements GET /statements/current_all(.:format) {:action=>"current_all", :controller=>"statements"}
statements GET /statements(.:format) {:action=>"index", :controller=>"statements"}
POST /statements(.:format) {:action=>"create", :controller=>"statements"}
new_statement GET /statements/new(.:format) {:action=>"new", :controller=>"statements"}
edit_statement GET /statements/:id/edit(.:format) {:action=>"edit", :controller=>"statements"}
statement GET /statements/:id(.:format) {:action=>"show", :controller=>"statements"}
PUT /statements/:id(.:format) {:action=>"update", :controller=>"statements"}
DELETE /statements/:id(.:format) {:action=>"destroy", :controller=>"statements"}
diag_test_index GET /test/diag(.:format) {:action=>"diag", :controller=>"test"}
diag_new_test_index GET /test/diag_new(.:format) {:action=>"diag_new", :controller=>"test"}
ledger_test_index GET /test/ledger(.:format) {:action=>"ledger", :controller=>"test"}
meds_test_index GET /test/meds(.:format) {:action=>"meds", :controller=>"test"}
pbox_test_index GET /test/pbox(.:format) {:action=>"pbox", :controller=>"test"}
prob_test_index GET /test/prob(.:format) {:action=>"prob", :controller=>"test"}
tplan_test_index GET /test/tplan(.:format) {:action=>"tplan", :controller=>"test"}
test_index GET /test(.:format) {:action=>"index", :controller=>"test"}
POST /test(.:format) {:action=>"create", :controller=>"test"}
new_test GET /test/new(.:format) {:action=>"new", :controller=>"test"}
edit_test GET /test/:id/edit(.:format) {:action=>"edit", :controller=>"test"}
test GET /test/:id(.:format) {:action=>"show", :controller=>"test"}
PUT /test/:id(.:format) {:action=>"update", :controller=>"test"}
DELETE /test/:id(.:format) {:action=>"destroy", :controller=>"test"}
wireframe_pages_claim POST /wireframe_pages/claim(.:format) {:controller=>"wireframe_pages", :action=>"claim"}
sign_in_home GET /sign_in_home(.:format) {:action=>"mydesk_schedule", :controller=>"multi"}
root / {:controller=>"multi", :action=>"mydesk_schedule"}
user_root GET / {:controller=>"home", :action=>"under_construction"}
signin GET /signin(.:format) {:action=>"mydesk_schedule", :controller=>"multi"}
billing_insurance GET /billing_insurance(.:format) {:action=>"billing_insurance", :controller=>"wireframe_pages"}
billing_goal_center GET /billing_goal_center(.:format) {:action=>"billing_goal_center", :controller=>"wireframe_pages"}
clients_ledgers GET /clients_ledgers(.:format) {:action=>"index", :controller=>"clients_ledgers"}
GET /clients_ledgers/:id(.:format) {:controller=>"clients_ledgers", :action=>"show"}
mydesk_schedule GET /mydesk_schedule(.:format) {:action=>"mydesk_schedule", :controller=>"multi"}
mydesk_todo GET /mydesk_todo(.:format) {:action=>"mydesk_todo", :controller=>"wireframe_pages"}
mydesk_dashboard GET /mydesk_dashboard(.:format) {:action=>"mydesk_dashboard", :controller=>"wireframe_pages"}
practice_reports GET /practice_reports(.:format) {:action=>"practice_reports", :controller=>"wireframe_pages"}
practice_batch_proc GET /practice_batch_proc(.:format) {:action=>"practice_batch_proc", :controller=>"wireframe_pages"}
practice_referral GET /practice_referral(.:format) {:action=>"practice_referral", :controller=>"wireframe_pages"}
practice_client_relations GET /practice_client_relations(.:format) {:action=>"practice_client_relations", :controller=>"wireframe_pages"}
practice_video GET /practice_video(.:format) {:action=>"practice_video", :controller=>"wireframe_pages"}
GET /info_practices(.:format) {:action=>"info_practices", :controller=>"wireframe_pages"}
GET /practices_users(.:format) {:action=>"practices_users", :controller=>"wireframe_pages"}
Pm::Application.routes.draw do
resources :activities
resources :pusers_todos do
member do
put :complete
end
collection do
get :search
end
end
resources :powerbox do
member do
get :hcfa_1500
end
end
resources :billing, :only => [] do
collection do
get :practice_ledger
get :statement_settings
end
end
resources :assessment_substance_abuses do
collection do
end
end
resources :clients_assessments do
member do
get :medical_edit
get :mental_health_edit
get :personal_edit
end
collection do
end
end
resource :clients_insurance_auths
resources :clients_medications do
collection do
get :search
end
end
resources :clients_attachments
resources :clients_forms
resources :clients_hcfas
resources :clients_tplans do
collection do
get :problems
get :definitions
get :goals
get :criteria
get :objectives
get :homeworks
get :interventions
get :tests
end
end
resources :clients_tplan_definitions
resources :clients_tplan_homeworks do
collection do
get :search
end
end
resources :clients_tplan_problems
resources :clients_appointments do
member do
get :initial
end
end
get "pages/choose"
post "pages/chosen"
get "pages/agree"
post 'pages/agreed'
get "admin/apex"
post "admin/apex_payers"
resources :activities
resources :clients_diagnoses
resources :clients_insurances
resources :clients_uploads
resources :day_to_day
resources :diagnosis_codes
# resources :pboxes do
# get :autocomplete_practices_user_preferred_name, :on => :collection
# get :autocomplete_client_preferred_name, :on => :collection
# end
resources :practices do
collection do
get :cancel_create
get :info
get :providers_ins_ids
end
end
resources :practices_auto_todos
resources :practices_users do
collection do
get :search
end
member do
post :email
get :fee_amount
end
end
resources :clients do
collection do
get :autocomplete_client_search_field
end
member do
get :add_activity
get :add_form
get :attachment
get :billing
get :contacts
get :forms
get :ins_info
get :appointments
end
end
resources :clients_clinical_notes do
member do
get :diagnosis
end
end
resources :clients_receivables
resources :clients_contacts do
member do
get :contacts
end
end
match "/client_info/:id/client_desc" => "client_info#client_desc"
match "/client_info/activity_feed"
get "/client_info/appointments"
#match "/client_info/billing"
match "/client_info/contacts"
match "/client_info/forms"
get "/client_info/info"
match "/client_info/:id/ins_info" => "client_info#ins_info"
match "/client_info/:id/financial_aging" => "client_info#financial_aging"
get "/client_info/new"
get "/client_info/:id" => "client_info#show"
get "/clinical_record/info"
resources :clinical_record do
member do
get :treatment_plan
end
collection do
get :show
end
end
#match "client_chart/:id" => "client_chart#show"
get "calendar/index"
resources :cpt_codes
resources :events do
member do
post :copy
end
end
resources :calendar, :only => [:index]
resources :insurance_plans
get "home/under_construction"
resources :practices_billing_closeouts do
collection do
put :options
end
end
resources :practices_cpt_codes
resources :practices_forms
devise_for :users, :controllers => { :registrations => "registrations", :sessions => "sessions" } do
put "/sessions/:id/update", :to => "sessions#update", :as => "update_session"
end
devise_for :users
devise_for :users do
get 'sign_out' => 'devise/sessions#destroy'
end
resources :relationships
resources :settings, :only => [ :index ] do
member do
get :practices_form_edit
get :practices_form_view
get :practices_auto_todos
get :pusers_fees
get :pusers_med_frequencies
get :pusers_tplan_homeworks
end
collection do
get :billing_closeout
get :billing_fees
get :client_portal_instructions
get :practices_activity_types
get :practices_billing_types
get :practices_checkboxes
get :practices_checkboxes_texts
get :practices_cpt_codes
get :practices_forms
get :practices_fee_schedules
end
end
resources :statements do
member do
get :checkout
get :close_out
get :current
end
collection do
get :current_all
end
end
resources :test do
collection do
get :diag
get :diag_new
get :ledger
get :meds
get :pbox
get :prob
get :tplan
end
end
post "wireframe_pages/claim"
# temp root directly to dashboard until sign_up/sign_in is working
get :sign_in_home, :to => "multi#mydesk_schedule"
root :to => "multi#mydesk_schedule", :constraints => lambda {|r| r.env["warden"].authenticate? }
#root :to => "home#index"
#get "/" => "home#index", :as => "user_root"
get "/" => "home#under_construction", :as => "user_root"
#root :to => "wireframe_pages#home_dashboard"
get :signin, :to => "multi#mydesk_schedule"
#get :billing_practice_ledger, :to => "billing#practice_ledger"
get :billing_insurance, :to => "wireframe_pages#billing_insurance"
get :billing_goal_center, :to => "wireframe_pages#billing_goal_center"
#get :client_chart, :to => "wireframe_pages#client_chart"
#get :client_ledger, :to => "wireframe_pages#client_ledger"
get :clients_ledgers, :to => "clients_ledgers#index"
get "/clients_ledgers/:id" => "clients_ledgers#show"
get :mydesk_schedule, :to => "multi#mydesk_schedule"
get :mydesk_todo, :to => "wireframe_pages#mydesk_todo"
get :mydesk_dashboard, :to => "wireframe_pages#mydesk_dashboard"
get :practice_reports, :to => "wireframe_pages#practice_reports"
get :practice_batch_proc, :to => "wireframe_pages#practice_batch_proc"
get :practice_referral, :to => "wireframe_pages#practice_referral"
get :practice_client_relations, :to => "wireframe_pages#practice_client_relations"
get :practice_video, :to => "wireframe_pages#practice_video"
#get :settings_setup, :to => "wireframe_pages#settings_setup"
get :info_practices, :to => "wireframe_pages#info_practices"
get :practices_users, :to => "wireframe_pages#practices_users"
=begin
get :billing_accounts_recv, :to => "wireframe_pages#billing_accounts_recv"
get :charts_assessment, :to => "wireframe_pages#charts_assessment"
get :charts_client_status, :to => "wireframe_pages#charts_client_status"
get :charts_client_summary, :to => "wireframe_pages#charts_client_summary"
get :charts_homework, :to => "wireframe_pages#charts_homework"
get :charts_clients, :to => "wireframe_pages#charts_clients"
get :charts_personal_notes, :to => "wireframe_pages#charts_personal_notes"
get :charts_prognosis, :to => "wireframe_pages#charts_prognosis"
get :charts_progress_notes, :to => "wireframe_pages#charts_progress_notes"
get :charts_treatment_plan, :to => "wireframe_pages#charts_treatment_plan"
get :home_dashboard, :to => "wireframe_pages#home_dashboard"
get :home_get_started, :to => "wireframe_pages#home_get_started"
get :home_todo, :to => "wireframe_pages#home_todo"
get :reports_reports, :to => "wireframe_pages#reports_reports"
get :schedule_calendar, :to => "wireframe_pages#schedule_calendar"
get :schedule_list_view, :to => "wireframe_pages#schedule_list_view"
get :schedule_schedule, :to => "wireframe_pages#schedule_schedule"
get :setup_databases, :to => "wireframe_pages#setup_databases"
get :setup_facilities, :to => "wireframe_pages#setup_facilities"
get :setup_users, :to => "wireframe_pages#setup_users"
get :mydesk, :to => "multi#mydesk"
=end
# The priority is based upon order of creation:
# first created -> highest priority.
# Sample of regular route:
# match 'products/:id' => 'catalog#view'
# Keep in mind you can assign values other than :controller and :action
# Sample of named route:
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
# This route can be invoked with purchase_url(:id => product.id)
# Sample resource route (maps HTTP verbs to controller actions automatically):
# resources :products
# Sample resource route with options:
# resources :products do
# member do
# get 'short'
# post 'toggle'
# end
#
# collection do
# get 'sold'
# end
# end
# Sample resource route with sub-resources:
# resources :products do
# resources :comments, :sales
# resource :seller
# end
# Sample resource route with more complex sub-resources
# resources :products do
# resources :comments
# resources :sales do
# get 'recent', :on => :collection
# end
# end
# Sample resource route within a namespace:
# namespace :admin do
# # Directs /admin/products/* to Admin::ProductsController
# # (app/controllers/admin/products_controller.rb)
# resources :products
# end
# You can have the root of your site routed with "root"
# just remember to delete public/index.html.
# root :to => 'welcome#index'
# See how all your routes lay out with "rake routes"
# This is a legacy wild controller route that's not recommended for RESTful applications.
# Note: This route will make all actions in every controller accessible via GET requests.
# match ':controller(/:action(/:id(.:format)))'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment