search for: todocontrol

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

Did you mean: foocontrol
2005 Mar 18
0
scaffold generator, pluralization and tutorials
Hi All the tutorials call their controllers ''TodoController''[1] or ''RecipeController''[2] (singular), but "script/generate scaffold Recipe" for example generates a ''RecipesController'' (in recipes_controller.rb) As I''m rather new to RoR I don''t know if that convention changed,...
2006 Aug 31
1
Need architectural help avoiding render :component
...w that page. As far as I can tell, it''s not possible to handle this in routes.rb, so I put it in a controller, PageController. Once the app determines what kind of controller is required, it needs to pass on the request to the appropriate controller (a CalendarController, BlogController, ToDoController, etc). It seems like the most straightforward way of doing this is to have the last line of PageController''s routing function be "render :component => ..." I have managed to use what I consider to be a gigantic hack to get around this. PageController figures out which co...