Displaying 1 result from an estimated 1 matches for "operador_id".
2007 Aug 31
2
How to spec routes for a resource nested in multiples resources?
...the resource "Llamadas" nested in:
- Operadores
- Productos
- Centros
Here is part of my routes http://pastie.caboo.se/92767
I want to spec that the routes for Llamadas, I tried several approachs:
- route_for(:controller => "llamadas", :action => "exitosas",
:operador_id => 1).should == "/operador/1/llamadas;exitosas"
- controller.send(:operador_exitosas_llamadas_path, at operador).should
== "/operador/22/llamadas;exitosas"
but nothing works.
any clue?
thanks in advance
--
Edgar Gonz?lez Gonz?lez
E-mail: edgargonzalez at gmail.com
http:/...