search for: departmentscontroller

Displaying 2 results from an estimated 2 matches for "departmentscontroller".

2006 Aug 14
1
Rest, routes, path_prefix and default params
...#39;/mycompany/departments'' and ''/companies/1/departments'' mean the same thing (both restful routes). When I set up the files as below, I get an error of ''Couldn''t find Company without an ID'' and my log file shows the following .. Processing DepartmentsController#index (for 127.0.0.1 at 2006-08-14 14:00:34) [GET] Session ID: d88710b06b66529459bc8c9c625109fc Parameters: {"action"=>"index", "controller"=>"departments"} How can I use restful routes with default parameters? ***** routes.rb ******* ActionContro...
2006 Feb 24
5
Controller Methods gets called twice on single invocation
I have no idea why this is happening but it seems like every method on my controller gets called twice. Here is what it looks like when I call a list using the scaffold code ========================== Processing DepartmentsController#index (for 127.0.0.1 at 2006-02-24 01:05:00) [GET] Parameters: {"action"=>"index", "controller"=>"departments"} [4;36;1mDepartment Count (0.000000) [0;1mSELECT COUNT(*) FROM departments [4;35;1mDepartment Load (0.010000) SELECT * FROM depa...