search for: target_control

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

2006 Feb 08
1
render_component vs. render_component_as_string?
I''m calling render_component in a helper. render_component :controller => target_controller, :action => "show", :id => target_id This works fine, except that passing the id in :params didn''t work and I had to pass in an explicit :id parameter to get the target controller to override the id - is that documented anywhere? That''s not my question. My que...
2007 Mar 31
1
Subdomains, Routing, and Subdirectory Controllers
...the request_routing plugin, have requests to that subdomain call corresponding "sub- controllers" inside a controller module. That way, urls like: http://sub.example.com/target/myaction could be routed to call: Grouped::TargetController#myaction (located in /app/controllers/ grouped/target_controller.rb) I realize one solution would be to use "Option #2" in the referenced post above and create an action dedicated to parsing the url and redirecting to the appropriate controller/action. However, I was wondering if a simpler approach could be taken through the routing code by doing...