search for: addvisit

Displaying 4 results from an estimated 4 matches for "addvisit".

2006 May 02
10
Ruby on Rails w/Dreamhost - routes problem...I think.
I am trying to deploy my first app on Dreamhost using Ruby on Rails. I followed the wiki, but I think I am missing something. I think it may be in my RoR code, but I am not sure. My app runs fine when run as http://localhost:3000/AddPatientVisit/addvisits AddPatientVisit is the controller and addvisits is the form that posts back to the controller. I got rid of the index.html in public (it did get served up before I deleted it). I think my route is wrong, but I don''t know how to direct it to the page above. I should point out that m...
2006 Apr 24
12
pass checked boxes to controller
...it_for_this_Pt", "8", {}, "yes","no") %></br> Patient #9<%= check_box ("add_visit_for_this_Pt", "9", {}, "yes","no") %></br> </br> <%= link_to "Add Visits", :action => "addvisit" %> #This is the method in my controller </body> </html> -- Posted via http://www.ruby-forum.com/.
2006 May 02
3
Route problem
I have an index.rhtml is rendered when the (main)controller is loaded. The page contains some check boxes and a submit button. See form code below. When I click the submit button, I get a 404. I don''t know how to post this data back to my controller where method "addvisit" is waiting. It works in WEBrick no problem, but doesn''t work in fcgi on DreamHost. I am guessing I just know how to make the route connection. I have this route in there and that worked for rendering the index page map.connect '''', :controller => "AddPa...
2006 Apr 24
4
javascript in RoR page - Check ALL/uncheck ALL buttons
I am trying to implement a check all and uncheck all button for my check boxes. Here is what I have below. I am getting this error each time: Error: document.myform.add_visit_for_this_Pt has no properties Source File: http://localhost:3000/AddPatientVisit/addvisits Line: 1 Strange that I can''t seem to pass value into the function. Thanks for your help! <SCRIPT LANGUAGE="JavaScript"> <!-- // by Nannette Thacker // http://www.shiningstar.net // This script checks and unchecks boxes on a form // Checks and unchecks unlimited n...