search for: asamplecontrol

Displaying 1 result from an estimated 1 matches for "asamplecontrol".

2006 Feb 13
1
dynamically generating a controller and appropriate routing
...the extended methods in the controller doesn''t seem to take effect. When testing via the webrick server, I get an unrecognized route error. What I have in my_library.rb is something like the following: say I''ve generated the following controller from within my_library.rb: class ASampleController < ActionController::Base def some_thing render_text "hello world!" end end and also from within my_library.rb I have the following code to add a route: ActionController::Routing::Routes.connect ''/show/:model_name/:id'', :controller => ''ASampleC...